0
0
Azurecloud~20 mins

Azure Database for PostgreSQL - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure PostgreSQL Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Azure Database for PostgreSQL High Availability

Which of the following statements correctly describes how Azure Database for PostgreSQL provides high availability?

AIt uses active-passive replication across multiple regions to ensure zero downtime.
BIt automatically creates a standby server in the same region and switches to it during failures.
CIt requires manual failover by the user to a backup server in a different region.
DIt relies on client-side retry logic without any built-in failover mechanism.
Attempts:
2 left
💡 Hint

Think about how Azure manages failover within the same region to minimize downtime.

Architecture
intermediate
2:00remaining
Choosing the Right Deployment Option for Azure Database for PostgreSQL

You need a managed PostgreSQL database with flexible scaling and built-in high availability. Which Azure Database for PostgreSQL deployment option should you choose?

AFlexible Server deployment with zone redundant high availability and burstable compute.
BHyperscale (Citus) deployment for single-node workloads without scaling.
CSingle Server deployment with manual backups and no high availability.
DManaged Instance deployment with no support for PostgreSQL extensions.
Attempts:
2 left
💡 Hint

Consider which deployment supports both scaling and built-in high availability.

security
advanced
2:00remaining
Configuring Secure Access to Azure Database for PostgreSQL

You want to restrict access to your Azure Database for PostgreSQL server to only specific Azure Virtual Network subnets. Which feature should you configure?

ADisable firewall and rely on database user authentication only.
BConfigure firewall rules to allow only the IP addresses of the subnets.
CUse Virtual Network Service Endpoints or Private Link to restrict access to specific subnets.
DEnable SSL enforcement and allow all IP addresses.
Attempts:
2 left
💡 Hint

Think about how Azure integrates network security with database access.

Configuration
advanced
2:00remaining
Configuring Backup Retention for Azure Database for PostgreSQL Flexible Server

You want to configure your Azure Database for PostgreSQL Flexible Server to retain backups for 14 days. Which configuration setting achieves this?

ASet the backup retention period to 35 days in the server properties.
BEnable geo-redundant backups with a 7-day retention period.
CConfigure the server to perform manual backups every 14 days.
DSet the backup retention period to 14 days in the server properties.
Attempts:
2 left
💡 Hint

Look for the setting that directly controls backup retention duration.

Best Practice
expert
2:00remaining
Optimizing Cost and Performance for Azure Database for PostgreSQL

You have a production workload with variable traffic patterns on Azure Database for PostgreSQL Flexible Server. Which approach best balances cost and performance?

AUse Flexible Server with burstable compute tier and stop the server during low traffic periods.
BUse Hyperscale (Citus) deployment with multiple nodes regardless of workload size.
CUse a Single Server deployment with the highest compute tier always enabled.
DUse Flexible Server with a fixed compute tier and no auto-scaling or stopping.
Attempts:
2 left
💡 Hint

Consider how to save costs when workload demand changes over time.