The AWS Certified Developer – Associate (DVA-C02) exam tests your proficiency in developing applications on AWS. It is designed for developers looking to validate their skills in AWS development.
You are configuring IAM policies. What happens when a user has multiple policies that contradict each other?
AGrant access based on least privilege
BDeny access based on highest policy
CUser has no access at all
DDeny access based on least restrictive policy
Explanation
Access is determined by the least privileged, denying contradictory permissions; other options are incorrect interpretations of IAM policy evaluation logic.
Q175
Which service allows you to run code without provisioning servers?
AAWS Lambda
BAmazon EC2
CAWS Fargate
DAmazon RDS
Explanation
AWS Lambda executes code without server management; EC2 requires server provisioning, Fargate is for container orchestration, and RDS is a managed database service.
Q176
You are configuring an IAM policy to allow access to S3 buckets. How should the 'Effect' be defined?
AAlways
BAllow or Deny
CGrant
DEnable
Explanation
The Effect should be 'Allow' or 'Deny' to control access; 'Always', 'Grant', and 'Enable' are not valid IAM Effect values.
Q177
What happens when you exceed the provisioned throughput for a DynamoDB table?
ARequests are throttled
BService automatically scales up
CData is lost
DWrites are queued indefinitely
Explanation
Exceeding throughput limits results in throttled requests; autoscaling doesn't happen automatically, no data loss occurs, and writes aren't queued indefinitely.
Q178
Which AWS service is best for deploying containerized applications?
AAmazon ECS
BAWS Lambda
CAmazon EC2
DAmazon S3
Explanation
Amazon ECS is specifically designed for container orchestration, while EC2 and S3 serve different purposes.
Q179
A company needs secure API access to DynamoDB from its users. What is the best practice?
AUse API Gateway with IAM roles
BDirect access to DynamoDB
CStore API keys in code
DUse EC2 instance for access
Explanation
Using API Gateway with IAM roles securely manages access, while direct access and hardcoded keys compromise security.
Q180
You are configuring a Lambda function with a VPC. What must you ensure for successful execution?
AAssign a public IP address
BConfigure a subnet and security group
CIncrease the function timeout
DDeploy in multiple regions
Explanation
Configuring a subnet and security group allows the Lambda function to access AWS resources within the VPC, while other options are irrelevant or incorrect.