Learning
Learning
Loading practice session...
AWS Certified Developer - Associate · Exam domain
60 practice questions in this domain. AI-tutored explanations for every answer.
Sign in to practice all 60 questions with progress tracking and AI explanations.
1. A developer is building a Python application that runs on a local workstation and needs to read objects from an Amazon S3 bucket. What is the most secure way to authenticate the application with AWS services?
Explanation
Storing access keys in the local AWS credentials file allows the AWS SDK to automatically retrieve them, keeping secrets out of the source code. Embedding keys in code or allowing anonymous access poses severe security risks.
2. An organization wants to grant a new team of developers permissions to manage AWS DynamoDB tables. What is the AWS-recommended approach for assigning these permissions?
Explanation
AWS best practices recommend attaching policies to IAM groups rather than individual users to simplify permission management. Sharing credentials or using the root account violates the principle of least privilege and accountability.
3. A user in AWS Account A needs to temporarily access resources located in AWS Account B. Which AWS Security Token Service (STS) API operation should the user call to obtain the necessary credentials?
Explanation
The AssumeRole API operation returns a set of temporary security credentials that you can use to access AWS resources in another account. GetSessionToken is typically used for users authenticating with MFA.
4. An administrator enforces multi-factor authentication (MFA) for all API calls. A developer needs to run a CLI script that requires MFA authentication. How can the developer obtain the necessary credentials to run the script?
Explanation
The GetSessionToken API is used to request temporary credentials for an IAM user, and it accepts MFA parameters (SerialNumber and TokenCode) to authenticate requests requiring MFA. The CLI does not automatically prompt for MFA without using STS.
5. An application running on an Amazon EC2 instance needs to upload log files to an Amazon S3 bucket. What is the most secure method for providing the application with the required AWS credentials?
Explanation
An instance profile is a container for an IAM role that you can use to pass role information to an EC2 instance. The AWS SDKs automatically retrieve these temporary, rotating credentials from the instance metadata service.
Practice all 60+ questions in this domain
Start free practice →