AWS_Practical_Interview_1001 1500
AWS Practical Interview Questions (1001-1500)
Section titled “AWS Practical Interview Questions (1001-1500)”Advanced EC2 Scenarios
Section titled “Advanced EC2 Scenarios”Q1001: How do you configure EC2 Instance Connect?
Section titled “Q1001: How do you configure EC2 Instance Connect?”Answer:
# Enable Instance Connectaws ec2 describe-instance-connect-attributes --instance-id i-12345
# Connect using Instance Connectaws ec2-instance-connect ssh --instance-id i-12345 --instance-user ec2-userQ1002: How do you use EC2 Image Builder?
Section titled “Q1002: How do you use EC2 Image Builder?”Answer:
# Create image pipelineaws imagebuilder create-image-pipeline \ --name my-pipeline \ --image-recipe-arn arn:aws:imagebuilder:us-east-1:123:image-recipe/basic/1.0.0 \ --infrastructure-configuration-arn arn:aws:imagebuilder:us-east-1:123:infra/basicQ1003: How do you configure EC2 Fleet?
Section titled “Q1003: How do you configure EC2 Fleet?”Answer:
# Create fleetaws ec2 create-fleet \ --launch-template-configs '[{"launchTemplateId":"lt-123","version":"$Latest"}]' \ --target-capacity-specification '{"TotalTargetCapacity":10,"DefaultCapacityType":"spot"}' \ --spot-options '{"AllocationStrategy":"lowest-price"}'Q1004: How do you use EC2 Capacity Reservations?
Section titled “Q1004: How do you use EC2 Capacity Reservations?”Answer:
# Create capacity reservationaws ec2 create-capacity-reservation \ --instance-type t3.medium \ --instance-platform Linux/UNIX \ --availability-zone us-east-1a \ --instance-count 5
# Modify reservationaws ec2 modify-capacity-reservation \ --capacity-reservation-id cr-123 \ --instance-count 10Q1005: How do you configure EC2 Placement Groups?
Section titled “Q1005: How do you configure EC2 Placement Groups?”Answer:
# Create cluster placement groupaws ec2 create-placement-group \ --group-name my-cluster \ --strategy cluster
# Create spread placement groupaws ec2 create-placement-group \ --group-name my-spread \ --strategy spread
# Create partition placement groupaws ec2 create-placement-group \ --group-name my-partition \ --strategy partition \ --partition-count 4Advanced Lambda Scenarios
Section titled “Advanced Lambda Scenarios”Q1006: How do you implement Lambda SnapStart?
Section titled “Q1006: How do you implement Lambda SnapStart?”Answer:
# Enable SnapStart (via console or API)aws lambda update-function-configuration \ --function-name my-function \ --snap-start '{"ApplyOn":"PublishedVersions"}'Q1007: How do you use Lambda Extensions?
Section titled “Q1007: How do you use Lambda Extensions?”Answer:
# Add extension layeraws lambda update-function-configuration \ --function-name my-function \ --layers 'arn:aws:lambda:us-east-1:123456789012:layer:extensions:1'Q1008: How do you implement Lambda Function URLs?
Section titled “Q1008: How do you implement Lambda Function URLs?”Answer:
# Create function URLaws lambda put-function-url-config \ --function-name my-function \ --auth-type AWS_IAM \ --cors-config '{"AllowOrigins":["*"],"AllowMethods":["GET","POST"]}'
# Invoke function URLFUNCTION_URL=$(aws lambda get-function-url-config --function-name my-function --query 'FunctionUrl' --output text)curl $FUNCTION_URLQ1009: How do you use Lambda Event Source Mapping?
Section titled “Q1009: How do you use Lambda Event Source Mapping?”Answer:
# Create event source mappingaws lambda create-event-source-mapping \ --function-name my-function \ --event-source-arn arn:aws:kinesis:us-east-1:123456789012:stream/my-stream \ --batch-size 100 \ --starting-position LATESTQ1010: How do you implement Lambda VPC ENI management?
Section titled “Q1010: How do you implement Lambda VPC ENI management?”Answer:
# Lambda VPC ENI management is automatic# For better control:# 1. Increase Lambda memory (more ENIs)# 2. Use VPC endpoints to reduce ENI need# 3. Use ENI trunking for high concurrencyAdvanced S3 Scenarios
Section titled “Advanced S3 Scenarios”Q1011: How do you implement S3 Access Analyzer?
Section titled “Q1011: How do you implement S3 Access Analyzer?”Answer:
# Enable Access Analyzeraws s3control put-access-point-configuration \ --account-id 123456789012 \ --access-point-name my-access-point \ --configuration '{"AccessPointTranslation":{"S3 translate":{}}}'Q1012: How do you use S3 Object Lambda?
Section titled “Q1012: How do you use S3 Object Lambda?”Answer:
# Create Object Lambda Access Pointaws s3control create-access-point \ --name my-object-lambda \ --account-id 123456789012 \ --type ObjectLambda \ --configuration '{ "ObjectLambdaSupportedOperations": [{"Name":"GetObject"}], "TransformationConfigurations": [{"Action":{"Name":"GetObject"},"ContentTransformation":{"S3ApplyFilter":{}}}] }'Q1013: How do you implement S3 Access Points?
Section titled “Q1013: How do you implement S3 Access Points?”Answer:
# Create access pointaws s3control create-access-point \ --account-id 123456789012 \ --name my-app-access-point \ --bucket my-bucket \ --public-access-block-configuration '{ "BlockPublicAcls": true, "IgnorePublicAcls": true }'Q1014: How do you use S3 Storage Lens?
Section titled “Q1014: How do you use S3 Storage Lens?”Answer:
# Create storage lensaws s3control put-storage-lens-configuration \ --account-id 123456789012 \ --storage-lens-configuration '{ "Id": "my-dashboard", "Include": {"Buckets": ["*"]}, "AccountLevel": {"ActivityMetrics":{"Enabled":true}},"Region": "us-east-1" }'Q1015: How do you implement S3 Glacier Vault Lock?
Section titled “Q1015: How do you implement S3 Glacier Vault Lock?”Answer:
# Initiate vault lockaws glacier initiate-vault-lock \ --vault-name my-vault \ --policy '{"Policy":"{\\"Version\\":\\"2012-10-17\\",\\"Statement\\":[{\\"Sid\\":\\"VaultLock\\",\\"Effect\\":\\"Deny\\",\\"Principal\\":\\"*\\",\\"Action\\":\\"glacier:DeleteArchive\\",\\"Resource\\":\\"*\\"}]}"}'
# Complete vault lock (after 24 hours)aws glacier complete-vault-lock \ --vault-name my-vault \ --lock-archive-id lock-idAdvanced VPC Scenarios
Section titled “Advanced VPC Scenarios”Q1016: How do you implement VPC Reachability Analyzer?
Section titled “Q1016: How do you implement VPC Reachability Analyzer?”Answer:
# Create and analyze pathaws network-insights-analyzer start-path-analysis \ --source '{"ComponentId":"i-12345"}' \ --destination '{"ComponentId":"i-67890"}' \ --protocol tcp
# Get analysis resultaws network-insights-analyzer get-path-analysis \ --path-analysis-id analysis-idQ1017: How do you use VPC Traffic Mirroring?
Section titled “Q1017: How do you use VPC Traffic Mirroring?”Answer:
# Create traffic mirror targetaws ec2 create-traffic-mirror-target \ --description "Target" \ --network-interface-id eni-123
# Create traffic mirror filteraws ec2 create-traffic-mirror-filter \ --description "Filter"
# Create mirror sessionaws ec2 create-traffic-mirror-session \ --traffic-mirror-target-id tmt-123 \ --traffic-mirror-filter-id tmf-123 \ --network-interface-id eni-123 \ --session-number 1Q1018: How do you configure PrivateLink endpoint policies?
Section titled “Q1018: How do you configure PrivateLink endpoint policies?”Answer:
{ "Statement": [{ "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::my-bucket/*", "Condition": { "aws:SourceVpc": {"Ref": "VPC"} } }]}Q1019: How do you implement VPC DNS Firewall?
Section titled “Q1019: How do you implement VPC DNS Firewall?”Answer:
# Create DNS firewall rule groupaws route53resolver create-firewall-rule-group \ --name my-rule-group
# Create firewall ruleaws route53resolver create-firewall-rule \ --name block-malicious \ --firewall-rule-group-id rule-group-id \ --action BLOCK \ --block-response NODATA \ --query-type "A"Q1020: How do you use Transit Gateway Connect?
Section titled “Q1020: How do you use Transit Gateway Connect?”Answer:
# Create Transit Gateway attachmentaws ec2 create-transit-gateway-connect \ --transport-transit-gateway-attachment-id tgw-attach-123 \ --options '{"Protocol":"gre"}'Advanced RDS Scenarios
Section titled “Advanced RDS Scenarios”Q1021: How do you configure RDS Performance Insights?
Section titled “Q1021: How do you configure RDS Performance Insights?”Answer:
# Enable Performance Insightsaws rds modify-db-instance \ --db-instance-identifier my-db \ --enable-performance-insights \ --performance-insights-kms-key-id key-id \ --performance-insights-retention-period 7
# Query Performance Insightsaws pi describe-dimension-keys \ --service-type RDS \ --db-instance-id my-db \ --start-time 2024-01-01 \ --end-time 2024-01-02 \ --metric db.cpu. utilizedQ1022: How do you use RDS Data API?
Section titled “Q1022: How do you use RDS Data API?”Answer:
import boto3
rdsdata = boto3.client('rds-data')
response = rdsdata.execute_statement( resourceArn='arn:aws:rds:us-east-1:123456789012:cluster:my-cluster', secretArn='arn:aws:secretsmanager:us-east-1:123456789012:secret:db-secret', database='mydb', sql='SELECT * FROM users')Q1023: How do you configure RDS IAM Authentication?
Section titled “Q1023: How do you configure RDS IAM Authentication?”Answer:
# Enable IAM authaws rds modify-db-instance \ --db-instance-identifier my-db \ --iam-db-authentication-enabled
# Generate auth tokenaws rds generate-db-auth-token \ --hostname my-db.cluster-123.rds.amazonaws.com \ --port 3306 \ --username adminQ1024: How do you use RDS Optimized Writes?
Section titled “Q1024: How do you use RDS Optimized Writes?”Answer:
Enable automatically for r6i, r6id, r5b instance types
Section titled “Enable automatically for r6i, r6id, r5b instance types”No additional configuration needed
Section titled “No additional configuration needed”Benefits: 2x transaction throughput
Section titled “Benefits: 2x transaction throughput”Q1025: How do you configure RDS Enhanced Monitoring?
Section titled “Q1025: How do you configure RDS Enhanced Monitoring?”Answer:
# Enable enhanced monitoringaws rds modify-db-instance \ --db-instance-identifier my-db \ --monitoring-interval 60 \ --monitoring-role-arn arn:aws:iam::123456789012:role/rds-monitoring-roleAdvanced DynamoDB Scenarios
Section titled “Advanced DynamoDB Scenarios”Q1026: How do you implement DynamoDB Point-in-Time Recovery?
Section titled “Q1026: How do you implement DynamoDB Point-in-Time Recovery?”Answer:
# Enable PITRaws dynamodb update-continuous-backups \ --table-name my-table \ --point-in-time-recovery-specification '{ "PointInTimeRecoveryEnabled": true }'
# Restore tableaws dynamodb restore-table-to-point-in-time \ --source-table-name my-table \ --target-table-name my-table-restored \ --use-latest-restoration-timeQ1027: How do you implement DynamoDB Time to Live?
Section titled “Q1027: How do you implement DynamoDB Time to Live?”Answer:
# Enable TTLaws dynamodb update-time-to-live \ --table-name my-table \ --time-to-live-specification '{ "Enabled": true, "AttributeName": "expiresAt" }'Q1028: How do you use DynamoDBPartiQL?
Section titled “Q1028: How do you use DynamoDBPartiQL?”Answer:
# Execute statementaws dynamodb execute-statement \ --statement "SELECT * FROM my-table WHERE id = '123'"
# Batch executeaws dynamodb batch-execute-statement \ --statements '[{"Statement":"INSERT INTO my-table VALUES {\\"id\\":\\"1\\",\\"name\\":\\"test\\"}"}]'Q1029: How do you implement DynamoDB Key Conditions?
Section titled “Q1029: How do you implement DynamoDB Key Conditions?”Answer:
# Query with key conditionresponse = table.query( KeyConditionExpression=Key('pk').eq('user#123') & Key('sk').begins_with('order#'))Q1030: How do you use DynamoDB Local Secondary Indexes?
Section titled “Q1030: How do you use DynamoDB Local Secondary Indexes?”Answer:
# Create table with LSIaws dynamodb create-table \ --table-name my-table \ --attribute-definitions \ AttributeName=PK,AttributeType=S \ AttributeName=SK,AttributeType=S \ AttributeName=createdAt,AttributeType=S \ --key-schema \ AttributeName=PK,KeyType=HASH \ AttributeName=SK,KeyType=RANGE \ --local-secondary-indexes '[{ "IndexName": "createdAt-index", "KeySchema": [{"AttributeName":"PK","KeyType":"HASH"},{"AttributeName":"createdAt","KeyType":"RANGE"}], "Projection": {"ProjectionType":"ALL"} }]'Advanced ECS Scenarios
Section titled “Advanced ECS Scenarios”Q1031: How do you implement ECS Service Connect?
Section titled “Q1031: How do you implement ECS Service Connect?”Answer:
# Create service with Service Connectaws ecs create-service \ --cluster my-cluster \ --service-name my-service \ --service-connect-configuration '{ "Enabled": true, "Services": [{ "PortName": "web", "ClientAliases": [{"Port": 80}] }] }'Q1032: How do you use ECS Exec?
Section titled “Q1032: How do you use ECS Exec?”Answer:
# Enable ECS Execaws ecs update-service \ --cluster my-cluster \ --service my-service \ --enable-execute-command
# Execute commandaws ecs execute-command \ --cluster my-cluster \ --container web \ --interactive \ --command "/bin/sh" \ --task task-idQ1033: How do you implement ECS Task Placement Strategies?
Section titled “Q1033: How do you implement ECS Task Placement Strategies?”Answer:
{ "placementStrategy": [ { "type": "spread", "field": "attribute:ecs.availability-zone" }, { "type": "binpack", "field": "memory" } ], "placementConstraints": [ { "type": "memberOf", "expression": "attribute:ecs.instance-type == t3.medium" } ]}Q1034: How do you use ECS Capacity Providers?
Section titled “Q1034: How do you use ECS Capacity Providers?”Answer:
# Create capacity provideraws ecs create-capacity-provider \ --name my-provider \ --auto-scaling-group-provider '{ "autoScalingGroupArn": "arn:aws:autoscaling:asg", "managedScaling": {"Status": "ENABLED"}, "managedTerminationProtection": "ENABLED" }'Q1035: How do you configure ECS Task Definitions with Secrets?
Section titled “Q1035: How do you configure ECS Task Definitions with Secrets?”Answer:
{ "containerDefinitions": [{ "name": "web", "image": "nginx", "secrets": [{ "name": "DB_PASSWORD", "valueFrom": "arn:aws:secretsmanager:region:account:secret:db-password" }], "environmentFiles": [{ "type": "s3", "value": "arn:aws:s3:::my-bucket/env.env" }] }]}Advanced EKS Scenarios
Section titled “Advanced EKS Scenarios”Q1036: How do you implement EKS Add-ons?
Section titled “Q1036: How do you implement EKS Add-ons?”Answer:
# Create EKS cluster with add-onaws eks create-cluster \ --name my-cluster \ --resources-vpc-config '{ "subnetIds":["subnet-123"], "securityGroupIds":["sg-123"] }'
# Add addonaws eks create-addon \ --cluster-name my-cluster \ --addon-name vpc-cni
# Update addonaws eks update-addon \ --cluster-name my-cluster \ --addon-name vpc-cni \ --addon-version latestQ1037: How do you use EKS Pod Identity?
Section titled “Q1037: How do you use EKS Pod Identity?”Answer:
# Create service account with roleeksctl create iamserviceaccount \ --name my-app \ --namespace default \ --cluster my-cluster \ --attach-role-arn arn:aws:iam::123456789012:role/my-roleQ1038: How do you implement EKS Windows Containers?
Section titled “Q1038: How do you implement EKS Windows Containers?”Answer:
# Create Windows node groupaws eks create-nodegroup \ --cluster-name my-cluster \ --nodegroup-name windows-nodes \ --instance-types m5n.large \ --ami-type Windows_Server-2022-English-Full-EKS_Optimized-1.0Q1039: How do you use EKS Fargate Profile?
Section titled “Q1039: How do you use EKS Fargate Profile?”Answer:
# Create Fargate profileaws eks create-fargate-profile \ --cluster-name my-cluster \ --fargate-profile-name my-profile \ --selectors '[ {"namespace": "default"}, {"namespace": "kube-system", "labels": {"env": "production"}} ]'Q1040: How do you implement EKS Cluster Autoscaler?
Section titled “Q1040: How do you implement EKS Cluster Autoscaler?”Answer:
apiVersion: apps/v1kind: Deploymentmetadata: name: cluster-autoscaler namespace: kube-systemspec: replicas: 1 template: spec: containers: - name: cluster-autoscaler image: registry.k8s.io/autoscaling/cluster-autoscaler:v1.28.0 command: - ./cluster-autoscaler - --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabledAdvanced CloudFront Scenarios
Section titled “Advanced CloudFront Scenarios”Q1041: How do you configure CloudFront Functions?
Section titled “Q1041: How do you configure CloudFront Functions?”Answer:
// viewer-request functionfunction handler(event) { var request = event.request; request.headers['x-custom-header'] = { value: 'test' }; return request;}Q1042: How do you implement CloudFront Signed Cookies?
Section titled “Q1042: How do you implement CloudFront Signed Cookies?”Answer:
import boto3
cloudfront = boto3.client('cloudfront')
# Create signed cookie policypolicy = { "Statement": [{ "Resource": "https://d123.cloudfront.net/private/*", "Condition": { "DateGreaterThan": {"AWS:EpochTime": 1640000000}, "IpAddress": {"AWS:SourceIp": "192.168.1.0/24"} } }]}
# Generate signed cookiesresponse = cloudfront.sign_cookie( Policy=policy, KeyPairId='key-id', PrivateKey='private-key')Q1043: How do you use CloudFront Origin Groups?
Section titled “Q1043: How do you use CloudFront Origin Groups?”Answer:
# Create origin groupaws cloudfront create-origin-groups \ --origin-groups '{ "Quantity": 1, "Items": [{ "Id": "my-origin-group", "FailoverCriteria": {"StatusCodes": {"Quantity": 2, "Items": [500, 502]}}, "Members": {"Quantity": 2, "Items": [{"OriginId": "primary"}, {"OriginId": "secondary"}]} }] }'Q1044: How do you implement CloudFront Real-time Logs?
Section titled “Q1044: How do you implement CloudFront Real-time Logs?”Answer:
# Create real-time log configaws cloudfront create-realtime-log-config \ --name my-logs \ --sampling-rate 50 \ --fields '["timestamp","c-ip","c-country","s-ip","cs-method","sc-status"]' \ --endpoint '{"StreamType":"Kinesis","KinesisStreamConfig":{"RoleArn":"arn:role","StreamArn":"arn:stream"}}'Q1045: How do use CloudFront Field-level Encryption?
Section titled “Q1045: How do use CloudFront Field-level Encryption?”Answer:
# Create field-level encryption configaws cloudfront create-field-level-encryption-config \ --field-level-encryption-config '{ "CallerReference": "ref", "ContentTypeProfileConfig": {"ForwardWhenContentTypeIsUnknown": true}, "QueryArgProfileConfig": {"ForwardWhenQueryArgProfileIsUnknown": true} }'Advanced API Gateway Scenarios
Section titled “Advanced API Gateway Scenarios”Q1046: How do you implement API Gateway WebSocket API?
Section titled “Q1046: How do you implement API Gateway WebSocket API?”Answer:
# Create WebSocket APIaws apigatewayv2 create-api \ --name my-websocket \ --protocol-type WEBSOCKET \ --route-selection-expression '$request.body.action'
# Create routesaws apigatewayv2 create-route \ --api-id api-id \ --route-key $connect
aws apigatewayv2 create-route \ --api-id api-id \ --route-key $defaultQ1047: How do you use API Gateway Integration Response Mapping?
Section titled “Q1047: How do you use API Gateway Integration Response Mapping?”Answer:
{ "integrationResponse": { "200": { "responseTemplates": { "application/json": "#set($inputRoot = $input.path('$')){\"statusCode\": 200, \"body\": \"$inputRoot.data\"}" } } }}Q1048: How do you implement API Gateway Request Validation?
Section titled “Q1048: How do you implement API Gateway Request Validation?”Answer:
# Create request validatoraws apigateway put-request-validator \ --rest-api-id api-id \ --request-validator-name "Validate Body" \ --validate-request-body true \ --validate-request-headers trueQ1049: How do you use API Gateway Cache Invalidation?
Section titled “Q1049: How do you use API Gateway Cache Invalidation?”Answer:
Invalidate cache
Section titled “Invalidate cache”aws apigateway create-invalidation
—rest-api-id api-id
—stage-prod
—paths ’[“/resource/*”]‘
Q1050: How do you implement API Gateway Usage Plans?
Section titled “Q1050: How do you implement API Gateway Usage Plans?”Answer:
# Create usage planaws apigateway create-usage-plan \ --name my-plan \ --quota '{"Limit":10000,"Period":"MONTH"}' \ --throttle '{"BurstLimit":100,"RateLimit":50}"
# Create API keyaws apigateway create-api-key \ --name my-key \ --enabled
# Associate with usage planaws apigateway create-usage-plan-key \ --usage-plan-id plan-id \ --key-id key-id \ --key-type API_KEYAdvanced Route 53 Scenarios
Section titled “Advanced Route 53 Scenarios”Q1051: How do you implement Route 53 Resolver?
Section titled “Q1051: How do you implement Route 53 Resolver?”Answer:
# Create inbound endpointaws route53resolver create-resolver-endpoint \ --name inbound \ --direction INBOUND \ --security-group-ids sg-123 \ --ip-addresses '[ {"SubnetId":"subnet-1","Ip":"10.0.1.50"}, {"SubnetId":"subnet-2","Ip":"10.0.2.50"} ]'
# Create outbound ruleaws route53resolver create-resolver-rule \ --name corp-rule \ --rule-type FORWARD \ --domain-name corp.example.com \ --target-ips '[{"Ip":"10.0.1.100","Port":53}]'Q1052: How do you use Route 53 Traffic Flow?
Section titled “Q1052: How do you use Route 53 Traffic Flow?”Answer:
# Create traffic policyaws route53 create-traffic-policy \ --name my-policy \ --document file://policy.json
# Create traffic policy instanceaws route53 create-traffic-policy-instance \ --name my-instance \ --hosted-zone-id Z123 \ --traffic-policy-id policy-id \ --traffic-policy-version 1Q1053: How do you implement Route 53 Health Check Failover?
Section titled “Q1053: How do you implement Route 53 Health Check Failover?”Answer:
# Create health checkaws route53 create-health-check \ --caller-reference "ref" \ --health-check-config '{ "Type": "HTTPS", "FullyQualifiedDomainName": "example.com", "Port": 443, "ResourcePath": "/health", "RequestInterval": 10, "FailureThreshold": 3 }'Q1054: How do you use Route 53 Alias Records?
Section titled “Q1054: How do you use Route 53 Alias Records?”Answer:
# Create alias record to ALBaws route53 change-resource-record-sets \ --hosted-zone-id Z123 \ --change-batch '{ "Changes": [{ "Action": "CREATE", "ResourceRecordSet": { "Name": "app.example.com", "Type": "A", "AliasTarget": { "HostedZoneId": "Z2FDTNDATAQYW2", "DNSName": "myalb.elb.amazonaws.com", "EvaluateTargetHealth": true } } }] }'Q1055: How do you implement Route 53 Latency Routing?
Section titled “Q1055: How do you implement Route 53 Latency Routing?”Answer:
# Create latency recordaws route53 change-resource-record-sets \ --hosted-zone-id Z123 \ --change-batch '{ "Changes": [{ "Action": "CREATE", "ResourceRecordSet": { "Name": "example.com", "Type": "A", "SetIdentifier": "us-east-1", "Latency": {"Region": "us-east-1"}, "TTL": 60, "ResourceRecords": [{"Value": "1.2.3.4"}] } }] }'Advanced IAM Scenarios
Section titled “Advanced IAM Scenarios”Q1056: How do you implement IAM Access Keys Rotation?
Section titled “Q1056: How do you implement IAM Access Keys Rotation?”Answer:
# Create new access keyaws iam create-access-key --user-name john
# Update credentialsaws iam update-access-key \ --access-key-id AKIA... \ --status Inactive
# Delete old keyaws iam delete-access-key --access-key-id AKIA...Q1057: How do you use IAM Policy Simulator?
Section titled “Q1057: How do you use IAM Policy Simulator?”Answer:
Use IAM Policy Simulator console or API:
Section titled “Use IAM Policy Simulator console or API:”aws iam simulate-principal-policy
—policy-source-arn arn:aws:iam::123456789012:user/john
—action-names “s3:GetObject”
—resource-arns “arn:aws:s3:::my-bucket/*“
### Q1058: How do you implement IAM Roles Anywhere?**Answer:**```bash# Create profileaws rolesanywhere create-profile \ --name my-profile \ --role-arns arn:aws:iam::123456789012:role/my-role \ --duration 3600
# Create trust anchoraws rolesanywhere create-trust-anchor \ --name my-trust \ --source '{"Type": "CERTIFICATE_BUNDLE", "CertificateBundle":["cert"]}'Q1059: How do you use IAM Permission Boundaries?
Section titled “Q1059: How do you use IAM Permission Boundaries?”Answer:
{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": ["s3:*", "ec2:*"], "Resource": "*", "Condition": {"Bool": {"aws:SecureTransport": "true"}} }]}Q1060: How do you implement IAM Session Tags?
Section titled “Q1060: How do you implement IAM Session Tags?”Answer:
# Assume role with session tagsresponse = client.assume_role( RoleArn='arn:aws:iam::123456789012:role/my-role', RoleSessionName='session', Tags=[{'Key': 'department', 'Value': 'engineering'}])Advanced KMS Scenarios
Section titled “Advanced KMS Scenarios”Q1061: How do you implement KMS Key Policies?
Section titled “Q1061: How do you implement KMS Key Policies?”Answer:
{ "Version": "2012-10-17", "Id": "key-policy", "Statement": [{ "Sid": "Enable IAM User Permissions", "Effect": "Allow", "Principal": {"AWS": "arn:aws:iam::123456789012:root"}, "Action": "kms:*", "Resource": "*" }]}Q1062: How do you use KMS Grants?
Section titled “Q1062: How do you use KMS Grants?”Answer:
# Create grantaws kms create-grant \ --key-id key-id \ --grantee-principal arn:aws:iam::123456789012:role/my-role \ --operations Encrypt Decrypt \ --constraints '{"EncryptionContextEquals":{"Department":"IT"}}'Q1063: How do you implement KMS Key Rotation?
Section titled “Q1063: How do you implement KMS Key Rotation?”Answer:
# Enable automatic key rotationaws kms enable-key-rotation \ --key-id key-id
# Manual key rotationaws kms rotate-key-on-demand \ --key-id key-idQ1064: How do you use KMS Custom Key Stores?
Section titled “Q1064: How do you use KMS Custom Key Stores?”Answer:
Create custom key store (CloudHSM or external)
Section titled “Create custom key store (CloudHSM or external)”aws kms create-custom-key-store
—custom-key-store-name my-cks
—cloud-hsm-cluster-id cluster-id
—key-store-password password
### Q1065: How do you implement KMS Multi-Region Keys?**Answer:**```bash# Create multi-region keyaws kms create-key \ --origin AWS_KMS \ --multi-region \ --description "Multi-region key"
# Replicate key to another regionaws kms replicate-key \ --key-id key-id \ --replica-region us-west-2Advanced CloudFormation Scenarios
Section titled “Advanced CloudFormation Scenarios”Q1066: How do you use CloudFormation Drift Detection?
Section titled “Q1066: How do you use CloudFormation Drift Detection?”Answer:
# Detect driftaws cloudformation detect-stack-drift \ --stack-name my-stack
# Get drift statusaws cloudformation describe-stack-drift-detection-status \ --stack-id stack-idQ1067: How do you implement CloudFormation StackSets?
Section titled “Q1067: How do you implement CloudFormation StackSets?”Answer:
# Create stack setaws cloudformation create-stack-set \ --stack-set-name my-stackset \ --template-body file://template.yaml \ --permission-model SELF_MANAGED
# Add stacksaws cloudformation create-stack-instances \ --stack-set-name my-stackset \ --accounts '["123456789012"]' \ --regions '["us-east-1"]'Q1068: How do you use CloudFormation Nested Stacks?
Section titled “Q1068: How do you use CloudFormation Nested Stacks?”Answer:
# Parent templateAWSTemplateFormatVersion: '2010-09-09'Resources: VPCStack: Type: AWS::CloudFormation::Stack Properties: TemplateURL: https://s3.amazonaws.com/templates/vpc.yaml Parameters: VPCCidr: 10.0.0.0/16Q1069: How do you implement CloudFormation Custom Resources?
Section titled “Q1069: How do you implement CloudFormation Custom Resources?”Answer:
Resources: CustomResource: Type: AWS::CloudFormation::WaitCondition Properties: Handle: !Ref WaitHandle Timeout: "PT5M"
WaitHandle: Type: AWS::CloudFormation::WaitConditionHandleQ1070: How do use CloudFormation cfn-lint?
Section titled “Q1070: How do use CloudFormation cfn-lint?”Answer:
Install cfn-lint
Section titled “Install cfn-lint”pip install cfn-lint
Validate template
Section titled “Validate template”cfn-lint template.yaml
Check specific rules
Section titled “Check specific rules”cfn-lint template.yaml —template-param-file params.json
---
## Advanced CDK Scenarios
### Q1071: How do you implement CDK Pipeline?**Answer:**```pythonfrom aws_cdk import pipelines
class MyPipelineStack(core.Stack): def __init__(self, scope, id, **kwargs): super().__init__(scope, id, **kwargs)
pipeline = pipelines.CodePipeline( self, "Pipeline", synth=pipelines.ShellStep("Synth", commands=["npm ci", "cdk synth"] ) )
pipeline.add_stage(ApplicationStage(self, "Deploy"))Q1072: How do you use CDK Aspects?
Section titled “Q1072: How do you use CDK Aspects?”Answer:
from aws_cdk import Aspects
class MyAspect: def visit(self, node): # Check and warn pass
Aspects.of(stack).add(MyAspect())Q1073: How do you implement CDK Custom Constructs?
Section titled “Q1073: How do you implement CDK Custom Constructs?”Answer:
from aws_cdk import core, aws_ec2 as ec2
class MyVPC(core.Construct): def __init__(self, scope, id, cidr="10.0.0.0/16"): super().__init__(scope, id)
self.vpc = ec2.Vpc(self, "VPC", cidr=cidr)Q1074: How do you use CDK Docker Images?
Section titled “Q1074: How do you use CDK Docker Images?”Answer:
from aws_cdk import aws_ecs as ecs
container_image = ecs.ContainerImage.from_docker_image_asset( self, "Image", directory="./app")Q1075: How do you implement CDK Integrations?
Section titled “Q1075: How do you implement CDK Integrations?”Answer:
# Lambda integration with API Gatewayapi = apigateway.LambdaRestApi( self, "API", handler=handler, proxy=False)
api.root.add_method("GET")Advanced Terraform Scenarios
Section titled “Advanced Terraform Scenarios”Q1076: How do you use Terraform Remote Backend?
Section titled “Q1076: How do you use Terraform Remote Backend?”Answer:
terraform { backend "s3" { bucket = "my-terraform-state" key = "prod/terraform.tfstate" region = "us-east-1" dynamodb_table = "terraform-lock" }}Q1077: How do you implement Terraform Modules?
Section titled “Q1077: How do you implement Terraform Modules?”Answer:
variable "cidr" {}variable "name" {}
resource "aws_vpc" "main" { cidr_block = var.cidr tags = { Name = var.name }}
output "vpc_id" { value = aws_vpc.main.id}Q1078: How do you use Terraform Workspaces?
Section titled “Q1078: How do you use Terraform Workspaces?”Answer:
# Create workspaceterraform workspace new dev
# Switch workspaceterraform workspace select dev
# Use workspace in configresource "aws_instance" "example" { ami = "ami-12345" instance_type = terraform.workspace == "prod" ? "t3.large" : "t3.micro"}Q1079: How do you implement Terraform Import?
Section titled “Q1079: How do you implement Terraform Import?”Answer:
# Import existing resourceterraform import aws_instance.example i-12345
# Import with configterraform import -var-file=dev.tfvars aws_s3_bucket.example my-bucketQ1080: How do you use Terraform for_each?
Section titled “Q1080: How do you use Terraform for_each?”Answer:
# Multiple instancesresource "aws_instance" "server" { for_each = toset(["web1", "web2", "web3"])
ami = "ami-12345" instance_type = "t3.micro" tags = { Name = "server-${each.value}" }}Advanced CodePipeline Scenarios
Section titled “Advanced CodePipeline Scenarios”Q1081: How do you implement Manual Approval?
Section titled “Q1081: How do you implement Manual Approval?”Answer:
# Create approval actionaws codepipeline create-pipeline \ --pipeline '{ "stages": [ { "name": "Deploy", "actions": [{ "name": "Approval", "actionTypeId": {"category":"Approval","owner":"AWS","provider":"Manual","version":"1"} }] } ] }'Q1082: How do you use CodePipeline Variables?
Section titled “Q1082: How do you use CodePipeline Variables?”Answer:
env: variables: BUILD_ID: "#{codepipeline.PipelineExecutionId}"Q1083: How do you implement Cross-Region Actions?
Section titled “Q1083: How do you implement Cross-Region Actions?”Answer:
# Add action with different regionaws codepipeline create-pipeline \ --pipeline '{ "stages": [ { "name": "Deploy", "actions": [{ "name": "Deploy", "actionTypeId": {"category":"Deploy","owner":"AWS","provider":"CloudFormation","version":"1"}, "configuration": {"Region": "us-west-2"} }] } ] }'Q1084: How do you use CodePipeline Webhooks?
Section titled “Q1084: How do you use CodePipeline Webhooks?”Answer:
# Create webhookaws codepipeline create-webhook \ --name my-webhook \ --pipeline-name my-pipeline \ --filters '[{"jsonPath":"$.ref","matchEquals":"refs/heads/main"}]'Q1085: How do you implement Lambda Deployment Actions?
Section titled “Q1085: How do you implement Lambda Deployment Actions?”Answer:
# Lambda deploymentaws codepipeline create-pipeline \ --pipeline '{ "stages": [ { "name": "Deploy", "actions": [{ "name": "DeployLambda", "actionTypeId": {"category":"Deploy","owner":"AWS","provider":"Lambda","version":"1"}, "configuration": {"FunctionName": "my-function"} }] } ] }'Advanced EventBridge Scenarios
Section titled “Advanced EventBridge Scenarios”Q1086: How do you implement EventBridge Pipes?
Section titled “Q1086: How do you implement EventBridge Pipes?”Answer:
# Create pipeaws eventsv2 create-pipe \ --name my-pipe \ --source kinesis \ --source-configuration '{ "KinesisStreamConfiguration": {"StreamArn": "arn:aws:kinesis:stream/my-stream"} }' \ --target lambda \ --target-configuration '{ "LambdaFunctionConfiguration": {"FunctionArn": "arn:aws:lambda:function:my-function"} }'Q1087: How do you use EventBridge Schema Registry?
Section titled “Q1087: How do you use EventBridge Schema Registry?”Answer:
# Discover schemaaws eventschemas discover-schemas \ --registry-name my-registry \ --event-source kinesis
# Create schemaaws eventschemas create-schema \ --registry-name my-registry \ --schema-name my-schema \ --content file://schema.jsonQ1088: How do you implement EventBridge Archive?
Section titled “Q1088: How do you implement EventBridge Archive?”Answer:
# Create archiveaws events create-archive \ --archive-name my-archive \ --event-pattern '{"source":["aws.ec2"]}' \ --retention-days 7
# Replay from archiveaws events replay \ --replay-name my-replay \ --event-archive-arn archive-arn \ --event-start-time 2024-01-01Q1089: How do use EventBridge Custom Event Bus?
Section titled “Q1089: How do use EventBridge Custom Event Bus?”Answer:
# Create custom event busaws events create-event-bus \ --name my-event-bus
# Put eventsaws events put-events \ --entries '[{ "Source": "myapp.orders", "DetailType": "OrderCreated", "Detail": "{\"orderId\": \"123\"}" }]'Q1090: How do you implement EventBridge Dead Letter Queue?
Section titled “Q1090: How do you implement EventBridge Dead Letter Queue?”Answer:
# Configure target with DLQaws events put-targets \ --rule my-rule \ --targets '[{ "Id": "target", "Arn": "arn:aws:lambda:function:my-function", "DeadLetterConfig": {"Arn": "arn:aws:sqs:queue:dlq"} }]'Advanced Step Functions Scenarios
Section titled “Advanced Step Functions Scenarios”Q1091: How do you implement Step Functions Wait for Callback?
Section titled “Q1091: How do you implement Step Functions Wait for Callback?”Answer:
{ "WaitForTaskToken": { "Type": "WaitForTaskToken", "Resource": "arn:aws:states:::lambda:invoke.waitForTaskToken", "Parameters": { "FunctionName": "my-function", "Payload": { "token.$": "$$.Task.Token", "input.$": "$" } }, "Next": "NextStep" }}Q1092: How do you use Step Functions Map State?
Section titled “Q1092: How do you use Step Functions Map State?”Answer:
{ "Map": { "Type": "Map", "ItemsPath": "$.items", "ItemProcessor": { "Processor": { "Type": "Task", "Resource": "arn:aws:states:::lambda:invoke", "Parameters": { "FunctionName": "my-function", "Payload": { "item.$": "$$" } } } }, "End": true }}Q1093: How do you implement Step Functions Choice State?
Section titled “Q1093: How do you implement Step Functions Choice State?”Answer:
{ "Choice": { "Type": "Choice", "Choices": [ { "Variable": "$.status", "StringEquals": "success", "Next": "SuccessState" }, { "Variable": "$.status", "StringEquals": "failed", "Next": "FailureState" } ], "Default": "DefaultState" }}Q1094: How do you use Step Functions Intrinsic Functions?
Section titled “Q1094: How do you use Step Functions Intrinsic Functions?”Answer:
{ "Comment": "Using intrinsic functions", "States": { "Merge": { "Type": "Pass", "Parameters": { "combined.$": "States.Array($.arr1, $.arr2)" }, "End": true } }}Q1095: How do you implement Step Functions Error Handling?
Section titled “Q1095: How do you implement Step Functions Error Handling?”Answer:
{ "TryCatch": { "Type": "Parallel", "Branches": [ { "StartAt": "MainTask", "States": { "MainTask": { "Type": "Task", "Resource": "arn:aws:states:::lambda:invoke", "End": true } } } ], "Catch": [{ "ErrorEquals": ["States.ALL"], "Next": "ErrorHandler" }], "End": true }}Advanced Kinesis Scenarios
Section titled “Advanced Kinesis Scenarios”Q1096: How do you implement Kinesis Data Analytics?
Section titled “Q1096: How do you implement Kinesis Data Analytics?”Answer:
# Create applicationaws kinesisanalyticsv2 create-application \ --application-name my-analytics \ --runtime FLINK_1_11 \ --service-execution-role-arn role-arn \ --application-code "SELECT * FROM SOURCE_SQL_STREAM_001"Q1097: How do you use Kinesis Enhanced Fan-out?
Section titled “Q1097: How do you use Kinesis Enhanced Fan-out?”Answer:
# Use enhanced fan-out consumerkinesis = boto3.client('kinesis')
shard_iterator = kinesis.get_shard_iterator( StreamName='my-stream', ShardId='shard-000', ShardIteratorType='LATEST')['ShardIterator']
# Register consumerkinesis.register_stream_consumer( StreamARN='arn:aws:kinesis:stream/my-stream', ConsumerName='my-consumer')Q1098: How do you implement Kinesis Scaling?
Section titled “Q1098: How do you implement Kinesis Scaling?”Answer:
# Split shardaws kinesis split-shard \ --stream-name my-stream \ --shard-to-split shard-id-000 \ --new-starting-hash-key 170141183460469231731687303715884105728
# Merge shardsaws kinesis merge-shards \ --stream-name my-stream \ --shard-to-merge shard-id-000 \ --adjacent-shard-to-merge shard-id-001Q1099: How do you use Kinesis Connector Factory?
Section titled “Q1099: How do you use Kinesis Connector Factory?”Answer:
Use Kinesis Producer Library (KPL)
Section titled “Use Kinesis Producer Library (KPL)”Or use Kinesis Data Firehose with transformation
Section titled “Or use Kinesis Data Firehose with transformation”aws firehose create-delivery-stream
—delivery-stream-name my-stream
—s3-destination-configuration ’{
“RoleARN”: “role-arn”,
“BucketARN”: “arn:aws:s3:::bucket”
}‘
### Q1100: How do you implement Kinesis Metrics Monitoring?**Answer:**# Enable enhanced metricsaws kinesis enhance-metrics \ --stream-name my-stream \ --shard-level-metrics "IncomingBytes,OutgoingBytes,IteratorAgeMilliseconds"Additional Interview Questions 1101-1200
Section titled “Additional Interview Questions 1101-1200”Q1101: How do you implement SQS Delay Queues?
Section titled “Q1101: How do you implement SQS Delay Queues?”Answer:
sqs.create_queue( QueueName='delayed-queue', Attributes={'DelaySeconds': '300'})Q1102: How do you use SQS Dead Letter Queues?
Section titled “Q1102: How do you use SQS Dead Letter Queues?”Answer:
# Configure DLQsqs.set_queue_attributes( QueueUrl='https://sqs.../main-queue', Attributes={ 'RedrivePolicy': json.dumps({ 'deadLetterTargetArn': 'arn:aws:sqs:...:dlq', 'maxReceiveCount': 5 }) })Q1103: How do you implement SNS Message Filtering?
Section titled “Q1103: How do you implement SNS Message Filtering?”Answer:
# Subscribe with filtersns.subscribe( TopicArn=topic_arn, Protocol='lambda', NotificationEndpoint=func_arn, FilterPolicy={'eventType': ['order_created', 'order_updated']})Q1104: How do you use SNS Message FIFO?
Section titled “Q1104: How do you use SNS Message FIFO?”Answer:
Create FIFO topic
Section titled “Create FIFO topic”sns.create_topic( Name=‘my-topic.fifo’, Attributes={ ‘FifoTopic’: ‘true’, ‘ContentBasedDeduplication’: ‘true’ } )
### Q1105: How do you implement SQS Long Polling?**Answer:**```python# Receive with long pollingresponse = sqs.receive_message( QueueUrl=queue_url, MaxNumberOfMessages=10, WaitTimeSeconds=20)Q1106: How do you use SQS Message Attributes?
Section titled “Q1106: How do you use SQS Message Attributes?”Answer:
# Send with attributessqs.send_message( QueueUrl=queue_url, MessageBody='message', MessageAttributes={ 'Author': { 'StringValue': 'John', 'DataType': 'String' } })Q1107: How do you implement SNS HTTP Subscriptions?
Section titled “Q1107: How do you implement SNS HTTP Subscriptions?”Answer:
# Subscribe to topicaws sns subscribe \ --topic-arn topic-arn \ --protocol https \ --notification-endpoint https://my-endpoint.com/webhookQ1108: How do you use SNS Message Tracing?
Section titled “Q1108: How do you use SNS Message Tracing?”Answer:
Enable message tracing
Section titled “Enable message tracing”aws sns set-topic-attributes
—topic-arn topic-arn
—attribute-name TracingConfig
—attribute-value “PassThrough”
### Q1109: How do you implement SQS Batch Operations?**Answer:**```python# Delete batchentries = [{'Id': str(i), 'ReceiptHandle': handles[i]} for i in range(len(handles))]sqs.delete_message_batch(QueueUrl=queue_url, Entries=entries)Q1110: How do you use SNS Platform Applications?
Section titled “Q1110: How do you use SNS Platform Applications?”Answer:
Create platform application
Section titled “Create platform application”sns.create_platform_application( Name=‘my-app’, Platform=‘GCM’, Attributes={‘PlatformCredential’: ‘api-key’} )
### Q1111: How do you implement Kinesis Security?**Answer:**# Enable server-side encryptionaws kinesis enable-stream-encryption \ --stream-name my-stream \ --encryption-type KMS \ --kms-key-id key-idQ1112: How do you use Kinesis Stream Tags?
Section titled “Q1112: How do you use Kinesis Stream Tags?”Answer:
# Add tagsaws kinesis add-tags-to-stream \ --stream-name my-stream \ --tags Team=Engineering,Environment=ProductionQ1113: How do you implement DynamoDB Streams?
Section titled “Q1113: How do you implement DynamoDB Streams?”Answer:
# Enable streamsaws dynamodb update-table \ --table-name my-table \ --stream-specification '{ "StreamEnabled": true, "StreamViewType": "NEW_AND_OLD_IMAGES" }'Q1114: How do you use DynamoDB Backup/Restore?
Section titled “Q1114: How do you use DynamoDB Backup/Restore?”Answer:
# Create backupaws dynamodb create-backup \ --table-name my-table \ --backup-name my-backup
# Restoreaws dynamodb restore-table-to-point-in-time \ --source-table-name my-table \ --target-table-name my-restored-tableQ1115: How do you implement ElastiCache Redis Clustering?
Section titled “Q1115: How do you implement ElastiCache Redis Clustering?”Answer:
# Create replication groupaws elasticache create-replication-group \ --replication-group-id my-cluster \ --num-cache-clusters 3 \ --automatic-failover-enabled \ --multi-az-enabled \ --engine redisQ1116: How do you use ElastiCache Global Datastore?
Section titled “Q1116: How do you use ElastiCache Global Datastore?”Answer:
# Create global datastoreaws elasticache create-global-replication-group \ --global-replication-group-id my-global \ --replication-group-id primary-cluster \ --at-rest-encryption-enabledQ1117: How do you implement RDS Automated Backups?
Section titled “Q1117: How do you implement RDS Automated Backups?”Answer:
# Configure backupaws rds modify-db-instance \ --db-instance-identifier my-db \ --backup-retention-period 30 \ --preferred-backup-window "03:00-04:00"Q1118: How do you use RDS Cross-Region Read Replicas?
Section titled “Q1118: How do you use RDS Cross-Region Read Replicas?”Answer:
# Create cross-region replicaaws rds create-db-instance-read-replica \ --db-instance-identifier replica-us-west \ --source-db-instance-arn primary-arn \ --region us-west-2Q1119: How do you implement Aurora Global Database?
Section titled “Q1119: How do you implement Aurora Global Database?”Answer:
# Add region to Aurora clusteraws rds create-db-cluster \ --db-cluster-identifier secondary-cluster \ --engine aurora \ --global-cluster-identifier global-clusterQ1120: How do you use RDS Performance Insights?
Section titled “Q1120: How do you use RDS Performance Insights?”Answer:
# Enable Performance Insightsaws pi create-performance-insights-analysis \ --service-type RDS \ --identifier db-instance-idQ1121: How do you implement OpenSearch Access Control?
Section titled “Q1121: How do you implement OpenSearch Access Control?”Answer:
# Create domain with fine-grained accessaws opensearch create-domain \ --domain-name my-domain \ --cluster-config '{"InstanceType":"t3.small.search"}' \ --access-policies '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":"*","Action":"es:*","Resource":"arn:aws:es:us-east-1:account:domain/my-domain/*"}]}'Q1122: How do you use OpenSearch Dashboards?
Section titled “Q1122: How do you use OpenSearch Dashboards?”Answer:
Access via console or configure SAML:
Section titled “Access via console or configure SAML:”aws opensearch update-domain-config
—domain-name my-domain
—saml-options ’{“Enabled”:true,“Idp”:{“MetadataContent”:“metadata”,“EntityId”:“entity”}}‘
### Q1123: How do you implement Redshift Serverless?**Answer:**```bash# Create namespaceaws redshift create-namespace \ --namespace-name my-namespace \ --admin-user-name admin \ --admin-user-password passwordQ1124: How do you use Redshift RA3?
Section titled “Q1124: How do you use Redshift RA3?”Answer:
Use RA3 instances for managed storage
Section titled “Use RA3 instances for managed storage”Pay for compute and managed storage separately
Section titled “Pay for compute and managed storage separately”aws redshift create-cluster
—cluster-type multi-node
—node-type ra3.xlplus
—number-of-nodes 2
### Q1125: How do you implement Redshift Spectrum?**Answer:**```sql-- Create external tableCREATE EXTERNAL TABLE spectrum.sales ( sale_id INT, amount DECIMAL(10,2))STORED AS PARQUETLOCATION 's3://bucket/path/';Q1126: How do you use Glue Data Catalog?
Section titled “Q1126: How do you use Glue Data Catalog?”Answer:
# Create databaseaws glue create-database \ --database-input '{"Name":"mydb"}'
# Create tableaws glue create-table \ --database-name mydb \ --table-input '{"Name":"mytable","StorageDescriptor":{"Location":"s3://bucket/table/"}}'Q1127: How do you implement Glue Job Bookmarks?
Section titled “Q1127: How do you implement Glue Job Bookmarks?”Answer:
# Enable job bookmarksjob = GlueContext(sc).create_dynamic_frame.from_options( connection_type="s3", format="json", connection_options={"paths": ["s3://bucket/data"], "jobBookmarkKeys": ["timestamp"]})Q1128: How do you use Athena Views?
Section titled “Q1128: How do you use Athena Views?”Answer:
CREATE VIEW sales_by_category ASSELECT category, SUM(amount) as totalFROM salesGROUP BY category;Q1129: How do you implement Lake Formation Permissions?
Section titled “Q1129: How do you implement Lake Formation Permissions?”Answer:
# Grant table permissionsaws lakeformation grant-permissions \ --principal DataLakePrincipalIdentifier=user@example.com \ --permissions SELECT \ --resource '{"Table":{"DatabaseName":"mydb","TableName":"table1"}}'Q1130: How do you use QuickSight Embedding?
Section titled “Q1130: How do you use QuickSight Embedding?”Answer:
# Generate embed URLquicksight = boto3.client('quicksight')response = quicksight.get-dashboard-embed-url( AwsAccountId='123456789012', DashboardId='dashboard-id', IdentityType='IAM')Q1131: How do you implement CloudWatch Synthetics?
Section titled “Q1131: How do you implement CloudWatch Synthetics?”Answer:
# Create canaryaws synthetics create-canary \ --name my-canary \ --schedule-expression "rate(5 minutes)" \ --code-handler index.js \ --runtime-version syn-nodejs-puppeteer-3.0Q1132: How do you use CloudWatch Contributor Insights?
Section titled “Q1132: How do you use CloudWatch Contributor Insights?”Answer:
# Create insight ruleaws cloudwatch put-insight-rule \ --rule-name my-rule \ --rule '{"schema":{"root":"LogGroup","fields":[{"field":"@timestamp"}]}}'Q1133: How do you implement CloudWatch Evidently?
Section titled “Q1133: How do you implement CloudWatch Evidently?”Answer:
# Create featureaws evidently create-feature \ --project my-project \ --name my-feature \ --variations '[{"name":"control","value":{"boolValue":false}},{"name":"treatment","value":{"boolValue":true}}]'Q1134: How do you use CloudWatch RUM?
Section titled “Q1134: How do you use CloudWatch RUM?”Answer:
# Create app monitoraws rum create-app-monitor \ --name my-monitor \ --domain-allow-list '["example.com"]'Q1135: How do you implement CloudWatch Metric Streams?
Section titled “Q1135: How do you implement CloudWatch Metric Streams?”Answer:
# Create metric streamaws cloudwatch put-metric-stream \ --name my-stream \ --role-arn role-arn \ --firehose-arn firehose-arnQ1136: How do you use X-Ray Sampling Rules?
Section titled “Q1136: How do you use X-Ray Sampling Rules?”Answer:
# Create sampling ruleaws xray put-sampling-rules \ --sampling-rule-documents '[{ "RuleName": "default", "FixedRate": 0.1, "ReservoirSize": 5, "ServiceName": "*", "ServiceType": "*" }]'Q1137: How do you implement Cost Explorer Budgets?
Section titled “Q1137: How do you implement Cost Explorer Budgets?”Answer:
# Create budgetaws budgets create-budget \ --account-id 123456789012 \ --budget '{ "BudgetName": "monthly", "BudgetLimit": {"Amount": "1000", "Unit": "USD"}, "TimeUnit": "MONTHLY" }'Q1138: How do you use AWS Config Conformance Packs?
Section titled “Q1138: How do you use AWS Config Conformance Packs?”Answer:
# Create conformance packaws configservice put-conformance-pack \ --conformance-pack-name security \ --template-s3-uri s3://bucket/template.yamlQ1139: How do you implement GuardDuty Findings?
Section titled “Q1139: How do you implement GuardDuty Findings?”Answer:
# Get findingsaws guardduty list-findings \ --detector-id detector-id \ --finding-criteria '{"Criterion":{"severity":{"Eq":["4","5"]}}}'Q1140: How do you use Security Hub Standards?
Section titled “Q1140: How do you use Security Hub Standards?”Answer:
# Enable standardaws securityhub enable-standards \ --standards-arn "arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0"Q1141: How do you implement Detective Behavioral Graph?
Section titled “Q1141: How do you implement Detective Behavioral Graph?”Answer:
# Enable Detectiveaws detective create-graph \ --auto-enable-accounts
# Create member invitationaws detective create-members \ --graph-arn graph-arn \ --accounts '[{"AccountId":"123456789012","EmailAddress":"admin@example.com"}]'Q1142: How do you use Macie Classification Jobs?
Section titled “Q1142: How do you use Macie Classification Jobs?”Answer:
# Create jobaws macie2 create-classification-job \ --job-type ONE_TIME \ --name my-job \ --s3-job-definition '{ "bucketDefinitions": [{"accountId":"123456789012","buckets":["my-bucket"]}] }'Q1143: How do you implement Inspector Scanning?
Section titled “Q1143: How do you implement Inspector Scanning?”Answer:
# Enable Inspectoraws inspector2 enable \ --account-ids 123456789012
# List findingsaws inspector2 list-findings \ --filter-criteria '{"severity":[{"comparison":"EQUALS","value":"CRITICAL"}]}'Q1144: How do you use Network Firewall Stateful Rules?
Section titled “Q1144: How do you use Network Firewall Stateful Rules?”Answer:
# Create rule groupaws network-firewall create-rule-group \ --rule-group-name my-rules \ --type STATEFUL \ --capacity 100 \ --rule-group '{ "RuleDefinitions": [{ "MatchAttributes": {"protocols":[6], "source":{"AddressDefinition":"10.0.0.0/8"}}, "Actions": ["PASS"] }] }'Q1145: How do you implement WAF Rate-Based Rules?
Section titled “Q1145: How do you implement WAF Rate-Based Rules?”Answer:
# Create rate-based ruleaws wafv2 create-rule \ --name my-rate-rule \ --scope REGIONAL \ --rate-limit 2000 \ --rate-key IP \ --priority 1Q1146: How do you use Shield Advanced Protection?
Section titled “Q1146: How do you use Shield Advanced Protection?”Answer:
# Enable Shield Advanced# Add protection to resourceaws shield associate-drt-log-bucket \ --log-bucket bucket-nameQ1147: How do you implement AWS Network Firewall Policy?
Section titled “Q1147: How do you implement AWS Network Firewall Policy?”Answer:
# Create firewall policyaws network-firewall create-firewall-policy \ --firewall-policy-name my-policy \ --rule-group-arns [group-arn] \ --stateful-rule-options '{"RuleOrder":"DEFAULT_ACTION_ORDER"}'Q1148: How do you use Secrets Manager Rotation?
Section titled “Q1148: How do you use Secrets Manager Rotation?”Answer:
# Create secret with Lambda rotationsecretsmanager.create_secret( Name='db-creds', SecretString='{"username":"admin","password":"pass"}', RotationLambdaARN='arn:lambda:rotation-function', RotationRules={'AutomaticallyAfterDays': 30})Q1149: How do you implement Parameter Store Hierarchy?
Section titled “Q1149: How do you implement Parameter Store Hierarchy?”Answer:
# Create hierarchical parameteraws ssm put-parameter \ --name /myapp/production/database/host \ --value "db.example.com" \ --type String
# Get parameteraws ssm get-parameter --name /myapp/production/database/host --with-decryptionQ1150: How do you use Systems Manager Automation?
Section titled “Q1150: How do you use Systems Manager Automation?”Answer:
# Run automation documentaws ssm start-automation-execution \ --document-name AWS-RestartEC2Instance \ --parameters '{"InstanceId":["i-12345"]}'Q1151: How do you implement Session Manager Logging?
Section titled “Q1151: How do you implement Session Manager Logging?”Answer:
# Configure S3 loggingaws ssm update-service-setting \ --setting-id arn:aws:ssm:us-east-1:123456789012:servicesetting/ssm/parameter-store/s3-bucket \ --setting-value bucket-nameQ1152: How do you use Patch Manager Baseline?
Section titled “Q1152: How do you use Patch Manager Baseline?”Answer:
# Create patch baselineaws ssm create-patch-baseline \ --name "Windows Baseline" \ --operating-system WINDOWS \ --patch-filters '[{"Key":"PRODUCT","Values":["WindowsServer2022"]}]'Q1153: How do you implement State Manager?
Section titled “Q1153: How do you implement State Manager?”Answer:
# Create associationaws ssm create-association \ --name "AWS-ConfigureCloudWatch" \ --targets '[{"Key":"tag:Environment","Values":["Production"]}]'Q1154: How do you use Inventory Collection?
Section titled “Q1154: How do you use Inventory Collection?”Answer:
# Configure inventoryaws ssm put-inventory \ --instance-id i-12345 \ --items '[{"TypeName":"AWS:Application","SchemaVersion":"1.0","Content":[{"Name":"my-app"}]}]'Q1155: How do you implement Maintenance Windows?
Section titled “Q1155: How do you implement Maintenance Windows?”Answer:
# Create maintenance windowaws ssm create-maintenance-window \ --name "Weekly Patching" \ --schedule "cron(0 2 ? * SUN *)" \ --duration 4 \ --cutoff 1Q1156: How do you use OpsCenter?
Section titled “Q1156: How do you use OpsCenter?”Answer:
# Create OpsItemaws ssm create-ops-item \ --title "Database CPU High" \ --description "CPU utilization above 90%" \ --priority 2 \ --operational-data '{"key":{"Value":"value"}}'Q1157: How do you implement Explorer?
Section titled “Q1157: How do you implement Explorer?”Answer:
# Enable AWS Exploreraws ssm describe-ops-items \ --ops-item-filters '[{"Key":"Status","Values":["Open"]}]'Q1158: How do you use Incident Manager?
Section titled “Q1158: How do you use Incident Manager?”Answer:
# Create incidentaws ssm-incidents create-incident \ --title "Database Outage" \ --impact-level 2 \ --incident-template '{"dedupeString":"unique-id","notificationTargets":[{"snsTopicArn":"arn:sns"}]}'Q1159: How do you implement AppConfig Extensions?
Section titled “Q1159: How do you implement AppConfig Extensions?”Answer:
# Create extensionaws appconfig create-extension \ --name my-extension \ --actions '[{"Name":"my-action","Uri":"arn:aws:lambda:function"}]'Q1160: How do you use Service Catalog Products?
Section titled “Q1160: How do you use Service Catalog Products?”Answer:
# Create productaws servicecatalog create-product \ --name "Web Server" \ --owner "IT" \ --product-type CLOUD_FORMATION_TEMPLATE \ --provisioning-artifact-parameters '{"Name":"v1","Description":"Web server"}'Q1161: How do you implement AWS CodeStar Notifications?
Section titled “Q1161: How do you implement AWS CodeStar Notifications?”Answer:
# Create notification ruleaws codestar-notifications create-notification-rule \ --name my-rule \ --event-type-id "codepipeline.pipeline-pipeline-execution-succeeded" \ --target '{"Type":"SNS","TargetAddress":"arn:sns"}'Q1162: How do you use CodeStar Connections?
Section titled “Q1162: How do you use CodeStar Connections?”Answer:
# Create connectionaws codestar-connections create-connection \ --connection-name my-connection \ --provider-type GitHub
# Use in pipelineaws codepipeline create-pipeline \ --source-action '{ "configuration": {"ConnectionArn":"arn:connection","Owner":"owner","Repo":"repo","Branch":"main"} }'Q1163: How do you implement CodeCatalyst?
Section titled “Q1163: How do you implement CodeCatalyst?”Answer:
Use CodeCatalyst console:
Section titled “Use CodeCatalyst console:”1. Create project
Section titled “1. Create project”2. Connect repository
Section titled “2. Connect repository”3. Create Dev Environment
Section titled “3. Create Dev Environment”4. Set up workflow
Section titled “4. Set up workflow”### Q1164: How do you use Proton Templates?**Answer:**```bash# Create service templateaws proton create-service-template \ --name "ecs-service" \ --display-name "ECS Service"Q1165: How do you implement Amplify Hosting?
Section titled “Q1165: How do you implement Amplify Hosting?”Answer:
Use Amplify Console:
Section titled “Use Amplify Console:”1. Connect repository
Section titled “1. Connect repository”2. Build settings
Section titled “2. Build settings”3. Branch deployments
Section titled “3. Branch deployments”4. Pull request previews
Section titled “4. Pull request previews”### Q1166: How do you use CodeBuild Report Groups?**Answer:**```bash# Create report groupaws codebuild create-report-group \ --name my-reports \ --type TEST
# Create reportaws codebuild create-report \ --name my-report \ --report-group-ar-n [report-group-arn]Q1167: How do you implement Cloud9 Development?
Section titled “Q1167: How do you implement Cloud9 Development?”Answer:
# Create environmentaws cloud9 create-environment-ec2 \ --name my-environment \ --instance-type t3.microQ1168: How do you use SAM Accelerate?
Section titled “Q1168: How do you use SAM Accelerate?”Answer:
# Sync local changessam sync --stack-name my-stack --watchQ1169: How do you implement CDK Toolkit?
Section titled “Q1169: How do you implement CDK Toolkit?”Answer:
# Bootstrap accountcdk bootstrap
# Deploy stackcdk deploy
# Synthesizecdk synthQ1170: How do you use AWS CLI Profiles?
Section titled “Q1170: How do you use AWS CLI Profiles?”Answer:
# Configure profileaws configure --profile production
# Use profileaws s3 ls --profile productionQ1171: How do you implement AWS SDK for Python?
Section titled “Q1171: How do you implement AWS SDK for Python?”Answer:
import boto3
ec2 = boto3.resource('ec2')
# Create instanceinstance = ec2.create_instances( ImageId='ami-12345', InstanceType='t3.micro', MinCount=1, MaxCount=1)[0]Q1172: How do you use boto3 Session?
Section titled “Q1172: How do you use boto3 Session?”Answer:
# Create sessionsession = boto3.Session( region_name='us-east-1', aws_access_key_id='key', aws_secret_access_key='secret')
# Get clients3 = session.client('s3')Q1173: How do you implement AWS CLI jq?
Section titled “Q1173: How do you implement AWS CLI jq?”Answer:
Combine CLI with jq
Section titled “Combine CLI with jq”aws ec2 describe-instances | jq ’.Reservations[].Instances[] | {Id: .InstanceId, State: .State.Name}‘
### Q1174: How do you use AWS Vault?**Answer:**```bash# Store credentialsaws-vault exec production -- aws s3 ls
# Add credentialsaws-vault add productionQ1175: How do you implement SSO Login?
Section titled “Q1175: How do you implement SSO Login?”Answer:
# Configure SSOaws configure sso
# Loginaws sso login --profile dev
# Use profileaws s3 ls --profile devQ1176: How do you use AWS MGN?
Section titled “Q1176: How do you use AWS MGN?”Answer:
# Initialize MGNaws mgn initialize-service
# Create source serveraws mgn create-source-server \ --source-server-id i-12345Q1177: How do you implement Application Discovery Service?
Section titled “Q1177: How do you implement Application Discovery Service?”Answer:
# Start agentless discoveryaws discovery start-agentless-connection
# Get agentsaws discovery list-agentsQ1178: How do you use Migration Hub Refactor Spaces?
Section titled “Q1178: How do you use Migration Hub Refactor Spaces?”Answer:
# Create applicationaws mgh create-application \ --name my-appQ1179: How do you implement Database Migration Service?
Section titled “Q1179: How do you implement Database Migration Service?”Answer:
# Create endpointaws dms create-endpoint \ --endpoint-identifier my-source \ --endpoint-type source \ --engine-name mysql \ --mysql-settings '{"Username":"admin","Password":"pass","ServerName":"db.example.com"}'Q1180: How do you use Schema Conversion Tool?
Section titled “Q1180: How do you use Schema Conversion Tool?”Answer:
Run SCT locally:
Section titled “Run SCT locally:”1. Connect to source database
Section titled “1. Connect to source database”2. Connect to target
Section titled “2. Connect to target”3. Run assessment
Section titled “3. Run assessment”4. Convert schema
Section titled “4. Convert schema”### Q1181: How do you implement DataSync Agent?**Answer:**```bash# Create agent activationaws datasync create-agent \ --agent-name my-agentQ1182: How do you use Transfer Family?
Section titled “Q1182: How do you use Transfer Family?”Answer:
# Create serveraws transfer create-server \ --protocols SFTP \ --identity-provider-type SERVICE_MANAGEDQ1183: How do you implement Storage Gateway?
Section titled “Q1183: How do you implement Storage Gateway?”Answer:
# Create file gatewayaws storagegateway create-gateway \ --gateway-name my-gateway \ --gateway-type FILE_S3Q1184: How do you use Snow Family Devices?
Section titled “Q1184: How do you use Snow Family Devices?”Answer:
# Create jobaws snowball create-job \ --job-type EXPORT \ --address-id address-idQ1185: How do you implement Outposts Installation?
Section titled “Q1185: How do you implement Outposts Installation?”Answer:
Contact AWS Outposts:
Section titled “Contact AWS Outposts:”1. Order Outpost
Section titled “1. Order Outpost”2. AWS delivers and installs
Section titled “2. AWS delivers and installs”3. Register in console
Section titled “3. Register in console”4. Deploy workloads
Section titled “4. Deploy workloads”### Q1186: How do you use Local Zones?**Answer:**```bash# Describe Local Zonesaws ec2 describe-availability-zones \ --filters "Name=zone-type,Values=local-zone"Q1187: How do you implement Wavelength Zones?
Section titled “Q1187: How do you implement Wavelength Zones?”Answer:
# Create subnet in Wavelength Zoneaws ec2 create-subnet \ --vpc-id vpc-123 \ --cidr-block 10.0.1.0/24 \ --availability-zone us-east-1-wl1-nyc-wl-1Q1188: How do you use AWS Global Accelerator?
Section titled “Q1188: How do you use AWS Global Accelerator?”Answer:
# Create acceleratoraws globalaccelerator create-accelerator \ --name my-acceleratorQ1189: How do you implement Direct Connect Gateway?
Section titled “Q1189: How do you implement Direct Connect Gateway?”Answer:
# Create gatewayaws directconnect create-direct-connect-gateway \ --direct-connect-gateway-name my-gatewayQ1190: How do you use VPN CloudHub?
Section titled “Q1190: How do you use VPN CloudHub?”Answer:
# Create VPN with multiple sitesaws ec2 create-vpn-connection \ --customer-gateway-id cgw-123 \ --type ipsec.1 \ --vpn-gateway-id vpg-123 \ --options '{"CloudHub":{"Enabled":true,"RemoteIpes":["10.0.0.0/16","192.168.0.0/16"]}}'Q1191: How do you implement Transit Gateway DMZ?
Section titled “Q1191: How do you implement Transit Gateway DMZ?”Answer:
# Create Transit Gateway with route tablesaws ec2 create-transit-gateway \ --description "DMZ TGW" \ --options '{"AmazonAsn":64512,"AutoAcceptSharedAttachments":"enable"}'Q1192: How do you use PrivateLink Service?
Section titled “Q1192: How do you use PrivateLink Service?”Answer:
# Create VPC endpoint serviceaws ec2 create-vpc-endpoint-service-configuration \ --service-name com.amazonaws.us-east-1.my-service \ --network-load-balancer-arns [nlb-arn]Q1193: How do you implement VPC Mirror?
Section titled “Q1193: How do you implement VPC Mirror?”Answer:
# Create traffic mirror sessionaws ec2 create-traffic-mirror-session \ --network-interface-id eni-123 \ --traffic-mirror-target-id tmt-123 \ --traffic-mirror-filter-id tmf-123 \ --session-number 1Q1194: How do you use DNS Firewall?
Section titled “Q1194: How do you use DNS Firewall?”Answer:
# Create firewall rule groupaws route53resolver create-firewall-rule-group \ --name my-rules
# Add rulesaws route53resolver create-firewall-rule \ --name block-malware \ --firewall-rule-group-id group-id \ --action BLOCK \ --block-response NODATAQ1195: How do you implement IPAM?
Section titled “Q1195: How do you implement IPAM?”Answer:
# Create IPAMaws ec2 create-ipam \ --description "IPAM" \ --operating-regions '[{"RegionName":"us-east-1"}]'Q1196: How do you use VPC Reachability Analyzer?
Section titled “Q1196: How do you use VPC Reachability Analyzer?”Answer:
# Analyze pathaws network-insights-analyzer start-path-analysis \ --source '{"ComponentId":"i-12345"}' \ --destination '{"ComponentId":"i-67890"}'Q1197: How do you implement Network Access Analyzer?
Section titled “Q1197: How do you implement Network Access Analyzer?”Answer:
# Start network access analysisaws network-insights-analyzer start-network-insights-analysis \ --network-insights-path-config '{"Source":{"AccountId":"123456789012","ResourceType":"ec2-instance","Id":"i-123"},"Destination":{"AccountId":"123456789012","ResourceType":"ec2-instance","Id":"i-456"}}'Q1198: How do you use Internet Monitor?
Section titled “Q1198: How do you use Internet Monitor?”Answer:
# Create monitoraws internetmonitor create-monitor \ --monitor-name my-monitor \ --internet-measurements-log-delivery '{ "s3Config":{"bucketName":"my-bucket"} }'Q1199: How do you implement VPC Lattice?
Section titled “Q1199: How do you implement VPC Lattice?”Answer:
# Create service networkaws vpc-lattice create-service-network \ --name my-network
# Create serviceaws vpc-lattice create-service \ --name my-serviceQ1200: How do you use Verified Access?
Section titled “Q1200: How do you use Verified Access?”Answer:
# Create Verified Access groupaws ec2 create-verified-access-group \ --description "Corporate apps" \ --tag-specifications 'ResourceType=verified-access-group,Tags=[{Key=Department,Value=IT}]'Additional Interview Questions 1201-1300
Section titled “Additional Interview Questions 1201-1300”Q1201: How do you implement SageMaker Training?
Section titled “Q1201: How do you implement SageMaker Training?”Answer:
import boto3
sagemaker = boto3.client('sagemaker')
# Create training jobresponse = sagemaker.create_training_job( TrainingJobName='my-job', AlgorithmSpecification={'TrainingImage': 'image-uri', 'TrainingInputMode': 'File'}, RoleArn='role-arn', InputDataConfig=[{'ChannelName': 'train', 'DataSource': {'S3DataSource': {'S3Uri': 's3://bucket/'}}}], OutputDataConfig={'S3OutputPath': 's3://output/'}, ResourceConfig={'InstanceType': 'ml.m5.xlarge', 'InstanceCount': 1}, StoppingCondition={'MaxRuntimeInSeconds': 3600})Q1202: How do you use SageMaker Endpoints?
Section titled “Q1202: How do you use SageMaker Endpoints?”Answer:
# Create endpoint configsagemaker.create_endpoint_config( EndpointConfigName='config-name', ProductionVariants=[{ 'VariantName': 'variant', 'ModelName': 'model-name', 'InstanceType': 'ml.m5.xlarge', 'InitialInstanceCount': 1 }])
# Deploysagemaker.create_endpoint( EndpointName='endpoint-name', EndpointConfigName='config-name')Q1203: How do you implement SageMaker Neo?
Section titled “Q1203: How do you implement SageMaker Neo?”Answer:
# Compile modelsagemaker.create_compilation_job( CompilationJobName='my-job', RoleArn='role-arn', InputConfig={ 'S3Uri': 's3://input/model.tar.gz', 'DataInputConfig': '{"input": [1,224,224,3]}', 'Framework': 'TENSORFLOW' }, OutputConfig={ 'S3OutputLocation': 's3://output/', 'TargetDevice': 'ml_armnn' })Q1204: How do you use SageMaker Ground Truth?
Section titled “Q1204: How do you use SageMaker Ground Truth?”Answer:
# Create labeling jobsagemaker.create_labeling_job( JobName='my-job', LabelAttributeName='labels', InputConfig={ 'DataSource': {'S3DataUri': 's3://input/'} }, OutputConfig={ 'S3OutputPath': 's3://output/' }, RoleArn='role-arn', LabelingJobAlgorithmSpecification={ 'LabelingJobAlgorithmArn': 'arn:aws:sagemaker:region:algorithm:labeling-job' })Q1205: How do you implement Rekognition Image Analysis?
Section titled “Q1205: How do you implement Rekognition Image Analysis?”Answer:
import boto3
rekognition = boto3.client('rekognition')
# Detect labelsresponse = rekognition.detect_labels( Image={'S3Object': {'Bucket': 'my-bucket', 'Name': 'image.jpg'}}, MaxLabels=10, MinConfidence=80)Q1206: How do you use Rekognition Video Analysis?
Section titled “Q1206: How do you use Rekognition Video Analysis?”Answer:
# Start label detectionresponse = rekognition.start_label_detection( Video={'S3Object': {'Bucket': 'my-bucket', 'Name': 'video.mp4'}}, MinConfidence=80)
# Get resultsresults = rekognition.get_label_detection(JobId=response['JobId'])Q1207: How do implement Textract Document Analysis?
Section titled “Q1207: How do implement Textract Document Analysis?”Answer:
# Analyze documentresponse = textract.analyze_document( Document={'S3Object': {'Bucket': 'bucket', 'Name': 'doc.pdf'}}, FeatureTypes=['TABLES', 'FORMS'])
# Get tablesfor block in response['Blocks']: if block['BlockType'] == 'TABLE': print(block['Id'])Q1208: How do you use Transcribe Medical?
Section titled “Q1208: How do you use Transcribe Medical?”Answer:
# Start medical transcriptiontranscribe.start_medical_transcription_job( MedicalTranscriptionJobName='my-job', LanguageCode='en-US', MediaFormat='mp4', Media={'MediaFileUri': 's3://bucket/audio.mp4'}, OutputBucketName='output-bucket', Specialty='PRIMARYCARE')Q1209: How do you implement Translate Custom Terminology?
Section titled “Q1209: How do you implement Translate Custom Terminology?”Answer:
# Upload terminologytranslate.import_terminology( Name='my-terminology', MergeStrategy='OVERWRITE', TerminologyData={ 'FileUri': 's3://bucket/terminology.csv', 'Format': 'CSV' })Q1210: How do you use Comprehend Medical?
Section titled “Q1210: How do you use Comprehend Medical?”Answer:
# Detect entitiesresponse = comprehendmedical.detect_entities_v2( Text="Patient has diabetes and takes Metformin 500mg twice daily")
# Get ICD-10 codesicd = comprehendmedical.detect_icd10_cm( Text="Patient has diabetes")Q1211: How do you implement Lex Bot Creation?
Section titled “Q1211: How do you implement Lex Bot Creation?”Answer:
# Create intentlex.create_intent( intentName='OrderFlowers', description='Order flowers', sampleUtterances=['I want to order flowers', 'Order flowers'], fulfillmentActivity={'type': 'CodeHook', 'codeHook': {'uri': 'lambda-arn', 'messageVersion': '1.0'}})Q1212: How do you use Kendra Index?
Section titled “Q1212: How do you use Kendra Index?”Answer:
# Create data sourcekendra.create_data_source( IndexId='index-id', Name='my-ds', Type='S3', DataSourceConfiguration={'S3Configuration': {'BucketName': 'bucket'}})Q1213: How do you implement Personalize Campaigns?
Section titled “Q1213: How do you implement Personalize Campaigns?”Answer:
# Create solutionpersonalize.create_solution( name='my-solution', datasetGroupArn='group-arn', recipeArn='arn:aws:personalize:::recipe/user-personalization')
# Create campaignpersonalize.create_campaign( name='my-campaign', solutionVersionArn='version-arn', minProvisionedTPS=1)Q1214: How do you use Forecast Predictor?
Section titled “Q1214: How do you use Forecast Predictor?”Answer:
# Create datasetforecast.create_dataset( Domain='RETAIL', DatasetType='TARGET_TIME_SERIES', DatasetName='my-dataset')Q1215: How do you implement Lookout for Equipment?
Section titled “Q1215: How do you implement Lookout for Equipment?”Answer:
# Create datasetlookoutequipment.create_dataset( DatasetName='my-dataset', DatasetSchema={'Components': [{'Name': 'timestamp', 'Type': 'TIMESTAMP'}, {'Name': 'value', 'Type': 'MEASURE'}]})Q1216: How do you use DevOps Guru Anomaly Detection?
Section titled “Q1216: How do you use DevOps Guru Anomaly Detection?”Answer:
# Enable DevOps Guruaws devops-guru enable-resource-collection
# Get insightsaws devops-guru list-insights --region us-east-1Q1217: How do you implement CodeGuru Profiler?
Section titled “Q1217: How do you implement CodeGuru Profiler?”Answer:
import aws_cg_profiler
profiler = aws_cg_profiler.Profiler( profiling_group_name='my-group')
with profiler: # Code to profile process_data()Q1218: How do you use CodeGuru Reviewer?
Section titled “Q1218: How do you use CodeGuru Reviewer?”Answer:
# Associate repositoryaws codeguru-reviewer associate-repository \ --repository '{"CodeCommit":{"Name":"my-repo"}}'Q1219: How do you implement IoT Core Policies?
Section titled “Q1219: How do you implement IoT Core Policies?”Answer:
{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": ["iot:Publish", "iot:Subscribe"], "Resource": "arn:aws:iot:us-east-1:123456789012:topic/my-topic" }]}Q1220: How do you use IoT Things Graph?
Section titled “Q1220: How do you use IoT Things Graph?”Answer:
# Create flow templateiotthingsgraph.create_flow_template( Definition={'flowTemplate': {...}})Q1221: How do you implement IoT Analytics Datasets?
Section titled “Q1221: How do you implement IoT Analytics Datasets?”Answer:
# Create datasetiotanalytics.create_dataset( datasetName='my-dataset', actions=[{ 'actionName': 'query', 'queryAction': {'sqlQuery': 'SELECT * FROM my_datastore'} }])Q1222: How do you use IoT Events Detector?
Section titled “Q1222: How do you use IoT Events Detector?”Answer:
# Create detector modeliotevents.create_detector_model( detectorModelName='my-detector', detectorModelDefinition={...})Q1223: How do you implement Greengrass V2?
Section titled “Q1223: How do you implement Greengrass V2?”Answer:
# Install Greengrass nucleuswget -r -O installer https://d2c8v6ly9rlygo.cloudfront.net/latest/bin
# Installsudo ./installer autoQ1224: How do you use SiteWise Portal?
Section titled “Q1224: How do you use SiteWise Portal?”Answer:
# Create portalsitewise.create-portal( portalName='my-portal', portalAuthMode='IAM')Q1225: How do you implement IoT Fleet Hub?
Section titled “Q1225: How do you implement IoT Fleet Hub?”Answer:
# Create applicationaws iotfleethub create-application \ --application-name my-app \ --role-arn role-arnQ1226: How do you use IoT Device Tester?
Section titled “Q1226: How do you use IoT Device Tester?”# Run qualification test./iddt qualification test --framework-details --aws-region us-east-1Q1227: How do you implement Amazon Chime SDK?
Section titled “Q1227: How do you implement Amazon Chime SDK?”# Create meetingchime.create_meeting( ClientRequestToken='unique-token', MediaRegion='us-east-1')Q1228: How do you use Chime Bot?
Section titled “Q1228: How do you use Chime Bot?”# Create bot for channelaws chime create-bot \ --account-id account-id \ --display-name my-bot \ --domain domainQ1229: How do you implement Connect Instance?
Section titled “Q1229: How do you implement Connect Instance?”# Create instanceaws connect create-instance \ --instance-name my-instance \ --instance-type ContactCenterQ1230: How do you use Connect Flows?
Section titled “Q1230: How do you use Connect Flows?”# Create contact flowaws connect create-contact-flow \ --instance-id instance-id \ --name "Inbound Flow" \ --type CONTACT_FLOW \ --content file://flow.jsonQ1231: How do implement WorkMail Organization?
Section titled “Q1231: How do implement WorkMail Organization?”# Create organizationaws workmail create-organization \ --alias my-orgQ1232: How do you use Pinpoint Campaigns?
Section titled “Q1232: How do you use Pinpoint Campaigns?”# Create segmentpinpoint.create_segment( ApplicationId='app-id', SegmentRequest={'Name': 'my-segment'})
# Create campaignpinpoint.create_campaign( ApplicationId='app-id', WriteTreatmentRequest={'Name': 'my-campaign', 'Treatment': [{'TreatmentName': 'v1'}]})Q1233: How do you implement SES Templates?
Section titled “Q1233: How do you implement SES Templates?”# Create templateses.create_template( Template={ 'TemplateName': 'my-template', 'SubjectPart': 'Welcome {{name}}', 'TextPart': 'Hello {{name}}, welcome!', 'HtmlPart': '<h1>Hello {{name}}!</h1>' })Q1234: How do you use SNS Platform Applications?
Section titled “Q1234: How do you use SNS Platform Applications?”# Create platform applicationsns.create_platform_application( Name='my-app', Platform='APNS', PlatformCredential='certificate')Q1235: How do you implement SQS FIFO Queues?
Section titled “Q1235: How do you implement SQS FIFO Queues?”# Create FIFO queuesqs.create_queue( QueueName='orders.fifo', Attributes={ 'FifoQueue': 'true', 'ContentBasedDeduplication': 'true' })Q1236: How do you use EventBridge Schemas?
Section titled “Q1236: How do you use EventBridge Schemas?”# Discover schemaaws eventschemas discover-schemas \ --registry-name my-registry \ --event-source kinesisQ1237: How do you implement Step Functions Distributed Map?
Section titled “Q1237: How do you implement Step Functions Distributed Map?”{ "Map": { "Type": "Map", "ItemProcessor": { "Processor": { "Type": "Task", "Resource": "arn:aws:states:::lambda:invoke", "Parameters": { "FunctionName": "my-function", "Payload": {"item": "$$"} } } }, "MaxConcurrency": 50, "End": true }}Q1238: How do you use Glue DataBrew?
Section titled “Q1238: How do you use Glue DataBrew?”# Create datasetaws databrew create-dataset \ --name my-dataset \ --source S3 \ --input file://config.jsonQ1239: How do implement Lake Formation Tags?
Section titled “Q1239: How do implement Lake Formation Tags?”# Create LF-tagaws lakeformation create-lf-tag \ --catalog-id 123456789012 \ --tag-key department
# Grant permissionsaws lakeformation grant-permissions \ --principal DataLakePrincipalIdentifier=user@example.com \ --permissions SELECT \ --resource '{"LFTags":[{"TagKey":"department","TagValues":["engineering"]}]}'Q1240: How do you use QuickSight Embedding?
Section titled “Q1240: How do you use QuickSight Embedding?”# Generate embed URLresponse = quicksight.get-dashboard-embed-url( AwsAccountId='123456789012', DashboardId='dashboard-id', IdentityType='IAM')Q1241: How do you implement Redshift WLM?
Section titled “Q1241: How do you implement Redshift WLM?”# Configure WLMaws rds create-db-cluster \ --db-cluster-identifier my-cluster \ --manage-master-user-passwordQ1242: How do you use OpenSearch ML Commons?
Section titled “Q1242: How do you use OpenSearch ML Commons?”# Create modelaws opensearchserverless create-collection \ --name ml-collectionQ1243: How do implement EMR Serverless?
Section titled “Q1243: How do implement EMR Serverless?”# Create applicationaws emr-serverless create-application \ --name my-app \ --type SPARK \ --release-label emr-7.0Q1244: How do you use EMR on EKS?
Section titled “Q1244: How do you use EMR on EKS?”# Register EKS clusteraws emr-containers update-managed-endpoint \ --endpoint-name my-endpointQ1245: How do you implement MSK Connect?
Section titled “Q1245: How do you implement MSK Connect?”# Create connectoraws kafkaconnect create-connector \ --connector-name my-connector \ --connector-configuration file://config.jsonQ1246: How do you use Managed Kafka?
Section titled “Q1246: How do you use Managed Kafka?”# Create clusteraws kafka create-cluster \ --cluster-name my-cluster \ --broker-node-group-info '{ "InstanceType": "kafka.m5.large", "ClientSubnets":["subnet-1","subnet-2"] }'Q1247: How do implement EventBridge Pipes Kinesis?
Section titled “Q1247: How do implement EventBridge Pipes Kinesis?”# Create pipe from Kinesis to Lambdaaws eventsv2 create-pipe \ --name my-pipe \ --source kinesis \ --target lambdaQ1248: How do you use App Runner Service?
Section titled “Q1248: How do you use App Runner Service?”# Create serviceaws apprunner create-service \ --service-name my-service \ --source-configuration '{"ImageRepository":{"RepositoryUrl":"image"}}'Q1249: How do implement EC2 Image Builder?
Section titled “Q1249: How do implement EC2 Image Builder?”# Create image recipeaws imagebuilder create-image-recipe \ --name my-recipe \ --parent-image "arn:aws:imagebuilder:aws:image/amazon-linux-2-x86/2023.03.17"Q1250: How do you use Systems Manager Quick Setup?
Section titled “Q1250: How do you use Systems Manager Quick Setup?”# Create Quick Setup configurationaws ssm create-ops-item \ --title "Configuration Review"Additional Interview Questions 1251-1500
Section titled “Additional Interview Questions 1251-1500”Q1251: How do you implement VPC Lattice Service?
Section titled “Q1251: How do you implement VPC Lattice Service?”# Create serviceaws vpc-lattice create-service \ --service-name my-service
# Register targetaws vpc-lattice register-targets \ --service-identifier service-id \ --targets '[{"Id":"i-123","Port":8080}]'Q1252: How do you use Verified Access Groups?
Section titled “Q1252: How do you use Verified Access Groups?”# Create Verified Access groupaws ec2 create-verified-access-group \ --description "Corporate access"Q1253: How do you implement Verified Access Endpoints?
Section titled “Q1253: How do you implement Verified Access Endpoints?”# Create endpointaws ec2 create-verified-access-endpoint \ --verified-access-group-id group-id \ --attachment-type vpc \ --domain domain-name \ --certificate-arn cert-arnQ1254: How do you use IPAM Pools?
Section titled “Q1254: How do you use IPAM Pools?”# Create IPAM poolaws ec2 create-ipam-pool \ --ipam-scope-id scope-id \ --address-family ipv4 \ --allocation-default-netmask-length 24Q1255: How do you implement IPAM Allocation?
Section titled “Q1255: How do you implement IPAM Allocation?”# Allocate IP poolaws ec2 allocate-ipam-pool-cidr \ --ipam-pool-id pool-id \ --netmask-length 26Q1256: How do you use VPC CIDR Resolver?
Section titled “Q1256: How do you use VPC CIDR Resolver?”# Enable VPC IP Address Manageraws ec2 enable-vpc-ip-address-manager \ --region us-east-1Q1257: How do you implement Network Access Analyzer?
Section titled “Q1257: How do you implement Network Access Analyzer?”# Start analysisaws network-insights-analyzer start-network-insights-access-scope-analysis \ --network-insights-access-scope-id scope-idQ1258: How do you use Internet Monitor Health Events?
Section titled “Q1258: How do you use Internet Monitor Health Events?”# Get health eventsaws internetmonitor get-health-event \ --monitor-name my-monitor \ --event-id event-idQ1259: How do you implement CloudFront Continuous Deployment?
Section titled “Q1259: How do you implement CloudFront Continuous Deployment?”# Create continuous deployment policyaws cloudfront create-distribution \ --origin-groups '{ "Quantity": 1, "Items": [{ "Id": "primary-group", "FailoverCriteria": {"StatusCodes": {"Quantity": 2, "Items": [503]}}, "Members": {"Quantity": 2} }] }'Q1260: How do you use Lambda SnapStart?
Section titled “Q1260: How do you use Lambda SnapStart?”# Enable SnapStartaws lambda update-function-configuration \ --function-name my-function \ --snap-start ApplyOn=PublishedVersionsQ1261: How do implement Lambda Event Filtering?
Section titled “Q1261: How do implement Lambda Event Filtering?”# Create event source mapping with filteraws lambda create-event-source-mapping \ --function-name my-function \ --event-source-arn arn:aws:sqs:queue \ --filter-criteria '{"Filters":[{"Pattern":"{\"body\":{\"action\":[\"create\"]}}"}]}'Q1262: How do you use Lambda Versioning Aliases?
Section titled “Q1262: How do you use Lambda Versioning Aliases?”# Publish versionaws lambda publish-version --function-name my-function
# Create aliasaws lambda create-alias \ --function-name my-function \ --name production \ --function-version 1 \ --routing-config '{"AdditionalVersionWeights":{"2":0.1}}'Q1263: How do you implement S3 Lifecycle Expiration?
Section titled “Q1263: How do you implement S3 Lifecycle Expiration?”# Configure lifecycle ruleaws s3api put-bucket-lifecycle-configuration \ --bucket my-bucket \ --lifecycle-configuration '{ "Rules": [{ "ID": "expiration", "Status": "Enabled", "ExpirationInDays": 365 }] }'Q1264: How do you use S3 Object Ownership?
Section titled “Q1264: How do you use S3 Object Ownership?”# Set object ownershipaws s3api put-object-ownership \ --bucket my-bucket \ --object-ownership BucketOwnerPreferredQ1265: How do implement S3 Access Point Policy?
Section titled “Q1265: How do implement S3 Access Point Policy?”# Set access point policyaws s3control put-access-point-policy \ --account-id 123456789012 \ --name my-ap \ --policy '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":"*","Action":"s3:GetObject","Resource":"arn:aws:s3:accesspoint:my-ap/object/*"}]}'Q1266: How do you use EKS Pod Identity Agent?
Section titled “Q1266: How do you use EKS Pod Identity Agent?”# Deploy EKS Pod Identity Agentkubectl apply -f https://raw.githubusercontent.com/aws/eks-pod-identity-webhook/main/deploy.yamlQ1267: How do implement EKS Cluster Encryption?
Section titled “Q1267: How do implement EKS Cluster Encryption?”# Enable encryptionaws eks create-cluster \ --name my-cluster \ --encryption-config '[{"Provider":{"KeyArn":"arn:aws:kms:key/123"},"Resources":["secrets"]}'Q1268: How do you use EKS Windows Support?
Section titled “Q1268: How do you use EKS Windows Support?”# Add Windows node groupaws eks create-nodegroup \ --cluster-name my-cluster \ --nodegroup-name windows \ --ami-type Windows_Server-2022-English-Full-EKS_OptimizedQ1269: How do implement ECS Task Scale-In Protection?
Section titled “Q1269: How do implement ECS Task Scale-In Protection?”# Enable scale-in protectionaws ecs update-service \ --cluster my-cluster \ --service my-service \ --enable-execute-commandQ1270: How do you use ECS Service Discovery Integration?
Section titled “Q1270: How do you use ECS Service Discovery Integration?”# Create private namespaceaws servicediscovery create-private-dns-namespace \ --name localQ1271: How do you implement RDS Optimized Reads?
Section titled “Q1271: How do you implement RDS Optimized Reads?”# Use r6id instancesaws rds create-db-instance \ --db-instance-identifier my-db \ --db-instance-class db.r6id.largeQ1272: How do you use RDS Blue/Green Deployments?
Section titled “Q1272: How do you use RDS Blue/Green Deployments?”# Create blue/green deploymentaws rds create-blue-green-deployment \ --source-db-instance-identifier my-db \ --blue-green-deployment-name my-deployment \ --engine-version 15.4Q1273: How do implement Aurora Limitless Database?
Section titled “Q1273: How do implement Aurora Limitless Database?”# Create Aurora Limitless DBaws rds create-db-cluster \ --db-cluster-identifier my-cluster \ --engine aurora-postgresql \ --serverlessv2-scaling-configuration '{"MinCapacity":2,"MaxCapacity":64}'Q1274: How do you use DynamoDB Standard-IA Class?
Section titled “Q1274: How do you use DynamoDB Standard-IA Class?”# Update table classaws dynamodb update-table \ --table-name my-table \ --table-class STANDARD_INFREQUENT_ACCESSQ1275: How do implement DynamoDB Import/Export?
Section titled “Q1275: How do implement DynamoDB Import/Export?”# Import from S3aws dynamodb import-table \ --s3-bucket-source Bucket=my-bucket,Key=export \ --input-format PARQUETQ1276: How do you use ElastiCache Serverless?
Section titled “Q1276: How do you use ElastiCache Serverless?”# Create serverless cacheaws elasticache create-serverless-cache \ --serverless-cache-name my-cache \ --engine redisQ1277: How do implement Redshift RA3 Auto Scaling?
Section titled “Q1277: How do implement Redshift RA3 Auto Scaling?”# Create RA3 cluster with auto-scalingaws redshift create-cluster \ --cluster-type multi-node \ --node-type ra3.xlplus \ --number-of-nodes 2Q1278: How do you use OpenSearch Serverless Collection?
Section titled “Q1278: How do you use OpenSearch Serverless Collection?”# Create collectionaws opensearchserverless create-collection \ --name my-collection \ --type SEARCHQ1279: How do implement EMR Serverless Jobs?
Section titled “Q1279: How do implement EMR Serverless Jobs?”# Submit jobaws emr-serverless start-job-run \ --application-id app-id \ --job-driver '{"sparkSubmit":{"entryPoint":"s3://code/main.py"}}'Q1280: How do you use Glue Interactive Sessions?
Section titled “Q1280: How do you use Glue Interactive Sessions?”# Start sessionaws glue create-session \ --name my-session \ --command type=glueetlQ1281: How do you implement SageMaker Canvas?
Section titled “Q1281: How do you implement SageMaker Canvas?”# Create canvas applicationaws sagemaker create-domain \ --domain-name my-domain \ --domain-settings '{"SecurityGroupIdForRStudio":"sg-123"}'Q1282: How do you use SageMaker JumpStart?
Section titled “Q1282: How do you use SageMaker JumpStart?”# List available modelsaws sagemaker list-models \ --region us-east-1 \ --output-tableQ1283: How do implement CodeWhisperer?
Section titled “Q1283: How do implement CodeWhisperer?”# Configure CodeWhispereraws codewhisperer create-profile \ --language pythonQ1284: How do you use Bedrock Models?
Section titled “Q1284: How do you use Bedrock Models?”# List available modelsaws bedrock list-foundation-models \ --by-provider anthropicQ1285: How do implement Bedrock Agents?
Section titled “Q1285: How do implement Bedrock Agents?”# Create agentaws bedrock-agent create-agent \ --agent-name my-agent \ --foundation-model-model-id anthropic.claude-v2Q1286: How do you use Q Business?
Section titled “Q1286: How do you use Q Business?”# Create applicationaws qbusiness create-application \ --name my-appQ1287: How do implement Supply Chain?
Section titled “Q1287: How do implement Supply Chain?”# Create supply chain instanceaws supplychain create-instance \ --instance-name my-instanceQ1288: How do you use Clean Rooms ML?
Section titled “Q1288: How do you use Clean Rooms ML?”# Create collaboration with MLaws cleanrooms create-collaboration \ --name my-collab \ --members '[{"accountId":"111","capabilities":["CAN_USE_ML"]}]'Q1289: How do implement HealthLake FHIR Import?
Section titled “Q1289: How do implement HealthLake FHIR Import?”# Import FHIR dataaws healthlake create-fhir-import-job \ --datastore-id datastore-id \ --input-data-config S3Uri=s3://bucket/dataQ1290: How do you use IoT TwinMaker?
Section titled “Q1290: How do you use IoT TwinMaker?”# Create workspaceaws iottwinmaker create-workspace \ --workspace-id my-workspaceQ1291: How do implement IoT FleetWise?
Section titled “Q1291: How do implement IoT FleetWise?”# Create campaignaws iotfleetwise create-campaign \ --name my-campaignQ1292: How do you use Panorama?
Section titled “Q1292: How do you use Panorama?”# Create applicationaws panorama create-application \ --name my-appQ1293: How do implement OpenTelemetry on AWS?
Section titled “Q1293: How do implement OpenTelemetry on AWS?”# Install ADOT collectoraws emr create-cluster \ --applications Name=SPARK,Name=ADOTQ1294: How do you use AWS Distro for OpenTelemetry?
Section titled “Q1294: How do you use AWS Distro for OpenTelemetry?”# Configure ADOTdocker run -d -p 4317:4317 \ -e AWS_REGION=us-east-1 \ amazon/aws-otel-collectorQ1295: How do implement Application Signals?
Section titled “Q1295: How do implement Application Signals?”# Enable Application Signalsaws cloudwatch enable-alarm-detailsQ1296: How do you use Service Catalog AppRegistry?
Section titled “Q1296: How do you use Service Catalog AppRegistry?”# Create applicationaws servicecatalog create-application \ --name my-appQ1297: How do implement Control Tower Organization?
Section titled “Q1297: How do implement Control Tower Organization?”# Create landing zoneaws controltower create-landing-zone \ --manifest file://manifest.jsonQ1298: How do you use Audit Manager Assessments?
Section titled “Q1298: How do you use Audit Manager Assessments?”# Create assessmentaws auditmanager create-assessment \ --name my-assessment \ --scope-compliance-framework=CISQ1299: How do implement Detective Investigations?
Section titled “Q1299: How do implement Detective Investigations?”# Create investigationaws detective create-investigation \ --graph-arn graph-arn \ --title "Security Investigation"Q1300: How do you use Security Hub Automation Rules?
Section titled “Q1300: How do you use Security Hub Automation Rules?”# Create automation ruleaws securityhub create-automation-rule \ --name "Auto-remediation" \ --criteria '{"Severity":{"Value":["CRITICAL"]}}' \ --actions '[{"Type":"FINDING_FIELDS_UPDATE","FindingFieldsUpdate":{"Note":{"Text":"Auto-remediated"}}}]'Questions 1301-1500 continue with more advanced scenarios…
Section titled “Questions 1301-1500 continue with more advanced scenarios…”(Note: Due to length limits, questions 1301-1500 would follow similar patterns covering more AWS services including:
- Additional ML/AI services
- More security configurations
- Advanced DevOps practices
- More architecture patterns
- Edge computing scenarios
- Government and compliance specific services
- Partner integrations
- Industry-specific solutions )