-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdeployment_best_practices.yaml
55 lines (55 loc) · 3.27 KB
/
deployment_best_practices.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
questions:
-
uuid: 1eebf878-8b9c-63d6-a50e-99d84c92580c
question: 'The default value of the realpath_cache_size PHP configuration option is 16K. Is this setting correct for a typical Symfony application?'
answers:
- { value: 'Yes. There is no need to change the default value.', correct: false }
- { value: "No, it's recommended to increase it at least to 4096K.", correct: true }
- { value: "No, it's recommended to decrease it to 4K to limit the I/O load in the server.", correct: false }
- { value: 'Yes, because the performance of Symfony applications is independent from that option.', correct: false }
help: 'https://symfony.com/doc/current/performance.html'
-
uuid: 1eebf878-8ba4-6522-b366-99d84c92580c
question: 'Following the maximum guidance performance of OPcache, what is the recommended opcache.max_accelerated_files value ?'
answers:
- { value: '4096', correct: false }
- { value: '8500', correct: false }
- { value: '20 000', correct: true }
- { value: '32 000', correct: false }
- { value: '96 000', correct: false }
help: 'https://symfony.com/doc/current/performance.html#configure-opcache-for-maximum-performance'
-
uuid: 1eebf878-8ba4-6568-837a-99d84c92580c
question: 'Following the maximum guidance performance of OPcache, what is the recommended opcache.memory_consuption value ?'
answers:
- { value: '32', correct: false }
- { value: '128', correct: false }
- { value: '256', correct: true }
- { value: '2048', correct: false }
help: 'https://symfony.com/doc/current/performance.html#configure-opcache-for-maximum-performance'
-
uuid: 1eebf878-8ba8-6c9e-a896-99d84c92580c
question: "In production servers, PHP files should never change, unless a new application version is deployed. However, by default OPcache checks if cached files have changed their contents since they were cached. How it is done to uncheck some overhead that can be avoided ?"
answers:
- { value: 'In php.ini: opcache.validate_timestamps=0', correct: true }
- { value: 'In php.ini: opcache.invalidate_timestamps=1', correct: false }
help: 'https://symfony.com/doc/current/performance.html#don-t-check-php-files-timestamps'
-
uuid: 1eebf878-8ba8-6ce4-b30d-99d84c92580c
question: 'What are the possible way to deploy a Symfony application ?'
answers:
- { value: 'Basic File Transfer like scp, ftp', correct: true }
- { value: 'using source control (e.g. Git or SVN)', correct: true }
- { value: 'using http & https protocol with a POST method', correct: false }
- { value: 'Using a Platform as a Service (PaaS) like platform.sh', correct: true }
help: 'https://symfony.com/doc/current/deployment.html#how-to-deploy-a-symfony-application-1'
-
uuid: 1eebf878-8baa-604e-b924-99d84c92580c
question: 'Which of the following files of a typical Symfony Standard Edition package must not be deployed on a production server?'
answers:
- { value: composer.lock, correct: false }
- { value: bin/console, correct: false }
- { value: vendor/autoload.php, correct: false }
- { value: web/app_dev.php, correct: true }
- { value: web/config.php, correct: true }
help: 'https://symfony.com/doc/current/deployment.html'