The AWS Certified Solutions Architect – Professional (SAP-C02) exam validates advanced skills in designing distributed systems on AWS. It is ideal for experienced architects looking to demonstrate their expertise.
You are configuring an IAM policy for a corporate application. What happens if the policy uses an explicit deny?
AAccess is granted.
BAccess is denied.
CAccess requests are logged.
DPolicy has no effect.
Explanation
In IAM, an explicit deny overrides any allow, which blocks access regardless of other permissions.
Q82
Which service enables infrastructure as code in AWS?
AAWS CloudFormation
BAWS Lambda
CAWS Systems Manager
DAWS CodeBuild
Explanation
AWS CloudFormation provides infrastructure as code capabilities, while the others focus on application management or build processes.
Q83
A company needs to restrict access to AWS resources based on user attributes. Which service is best suited for this requirement?
AAWS Directory Service
BAWS Organizations
CAWS IAM with Policies
DAWS Cognito
Explanation
AWS IAM with Policies can restrict access based on user attributes effectively, which is not the primary role of the other services listed.
Q84
What happens when you delete an Amazon S3 bucket with versioning enabled?
AAll versions are permanently deleted.
BBucket becomes inactive but preserved.
COnly latest version gets deleted.
DNo deletion occurs, bucket exists.
Explanation
All versions of the objects in a versioned bucket are deleted when deleting the bucket itself.
Q85
Which service allows you to run code without provisioning servers?
AAWS Lambda
BAmazon EC2
CAmazon RDS
DAWS Elastic Beanstalk
Explanation
AWS Lambda enables serverless execution of code, while the others require server management or configurations.
Q86
A company needs a managed NoSQL database solution that scales horizontally. Which AWS service should they choose?
AAmazon RDS
BAmazon DynamoDB
CAmazon Aurora
DAmazon Redshift
Explanation
Amazon DynamoDB provides a fully managed NoSQL database with seamless horizontal scaling, unlike the relational options which are not NoSQL.
Q87
What happens when you use a Security Group to restrict ingress to your EC2 instances?
AAccess is completely blocked.
BPermissions are ignored.
CAccess restricts to specific IPs.
DSecurity Groups don't affect ingress.
Explanation
Security Groups control ingress according to defined rules, meaning only allowed IPs can access instances, whereas the others misinterpret the Security Group behavior.
Q88
Which service would you use to automate EC2 instance management?
AAWS Lambda
BAWS CloudFormation
CAWS Systems Manager
DAWS CodeDeploy
Explanation
AWS Systems Manager automates operational tasks for EC2 instances; Lambda is for event-driven tasks, CloudFormation is for infrastructure provisioning, and CodeDeploy is for application deployment.
Q89
A company needs to encrypt sensitive data at rest in S3. What should they implement?
AS3 Transfer Acceleration
BIAM Policies
CS3 Server-Side Encryption
DS3 Object Lock
Explanation
S3 Server-Side Encryption protects data at rest; Transfer Acceleration speeds up data transfer, IAM Policies control access, and Object Lock is for compliance retention, not encryption.
Q90
What happens when a Lambda function exceeds its execution timeout?
AExecution completes successfully
BLambda retries the execution
CExecution is abruptly terminated
DFunction reverts to previous state
Explanation
When a Lambda function exceeds its timeout, the execution is abruptly terminated without any cleanup; it does not retry nor revert to a previous state, and it won't complete successfully.