ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 15 - DOP-C01 discussion

Report
Export

You have an application running on an Amazon EC2 instance and you are using IAM roles to securely access AWS Service APIs. How can you configure your application running on that instance to retrieve the API keys for use with the AWS SDKs?

A.
When assigning an EC2 IAM role to your instance in the console, in the "Chosen SDK" dropdown list, select the SDK that you are using, and the instance will configure the correct SDK on launch with the API keys.
Answers
A.
When assigning an EC2 IAM role to your instance in the console, in the "Chosen SDK" dropdown list, select the SDK that you are using, and the instance will configure the correct SDK on launch with the API keys.
B.
Within your application code, make a GET request to the IAM Service API to retrieve credentials for your user.
Answers
B.
Within your application code, make a GET request to the IAM Service API to retrieve credentials for your user.
C.
When using AWS SDKs and Amazon EC2 roles, you do not have to explicitly retrieve API keys, because the SDK handles retrieving them from the Amazon EC2 MetaData service.
Answers
C.
When using AWS SDKs and Amazon EC2 roles, you do not have to explicitly retrieve API keys, because the SDK handles retrieving them from the Amazon EC2 MetaData service.
D.
Within your application code, configure the AWS SDK to get the API keys from environment variables, because assigning an Amazon EC2 role stores keys in environment variables on launch.
Answers
D.
Within your application code, configure the AWS SDK to get the API keys from environment variables, because assigning an Amazon EC2 role stores keys in environment variables on launch.
Suggested answer: C
asked 16/09/2024
STEVE MESSANGA
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first